W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2007

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

From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 23 Aug 2007 09:18:47 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IO8pz-0000Ga-0c@lionel-hutz.w3.org>

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

Modified Files:
	StyleSheetGenerator.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: StyleSheetGenerator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGenerator.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- StyleSheetGenerator.java	21 Aug 2007 08:39:15 -0000	1.13
+++ StyleSheetGenerator.java	23 Aug 2007 09:18:44 -0000	1.14
@@ -58,7 +58,7 @@
 		URL url;
 		availableFormat = new Utf8Properties();
 		try {
-			url = StyleSheetGenerator.class.getResource("format.properties");
+			url = Messages.adjustURL(StyleSheetGenerator.class.getResource("format.properties"));
 			java.io.InputStream f = url.openStream();
 			availableFormat.load(f);
 			f.close();
@@ -69,7 +69,7 @@
 
 		availablePropertiesURL = new Utf8Properties();
 		try {
-			url = StyleSheetGenerator.class.getResource("urls.properties");
+			url = Messages.adjustURL(StyleSheetGenerator.class.getResource("urls.properties"));
 			java.io.InputStream f = url.openStream();
 			availablePropertiesURL.load(f);
 			f.close();
Received on Thursday, 23 August 2007 09:18:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 September 2007 14:33:19 GMT