2002/css-validator/org/w3c/css/util Messages.java,1.13,1.14

Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory hutz:/tmp/cvs-serv867/org/w3c/css/util

Modified Files:
	Messages.java 
Log Message:
Some changes to allow url to be adjusted if they are strange.
Changing the path to template and HTML files when it is not getting it well using getClass().getResources()...

Index: Messages.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- Messages.java	23 Aug 2007 09:10:33 -0000	1.13
+++ Messages.java	23 Aug 2007 09:18:45 -0000	1.14
@@ -332,6 +332,14 @@
 		}
 	}
 
+	/**
+	 * This method is called to clean the URL
+	 * /path/to/file will , file://localhost/path/to/file, file://C:\path\to\file, ...
+	 * will become file:///path/to/file 
+	 * @param resource, the URL to "clean"
+	 * @return the clean URL
+	 * @throws MalformedURLException
+	 */
 	public static URL adjustURL(URL resource) throws MalformedURLException {
 		String urlStr = resource.getFile();
 		if (urlStr.startsWith("file://"))

Received on Thursday, 23 August 2007 09:18:48 UTC