W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2008

2006/unicorn/org/w3c/unicorn/index IndexGenerator.java,1.5,1.6

From: Jean-Guilhem Rouel via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 23 Sep 2008 13:54:00 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Ki8L2-0000bg-4Z@lionel-hutz.w3.org>

Update of /sources/public/2006/unicorn/org/w3c/unicorn/index
In directory hutz:/tmp/cvs-serv2264/org/w3c/unicorn/index

Modified Files:
	IndexGenerator.java 
Log Message:
Fixed encoding issues with Jigsaw + simplified build.xml and added a jigsaw task

Index: IndexGenerator.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/index/IndexGenerator.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- IndexGenerator.java	12 Sep 2008 18:01:51 -0000	1.5
+++ IndexGenerator.java	23 Sep 2008 13:53:58 -0000	1.6
@@ -6,11 +6,12 @@
 
 import java.io.File;
 import java.io.FileNotFoundException;
-import java.io.FileWriter;
 import java.io.IOException;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.util.Properties;
+import java.io.OutputStreamWriter;
+import java.io.FileOutputStream;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -115,9 +116,9 @@
 			final Template aTemplate = IndexGenerator.aVelocityEngine
 					.getTemplate(sName, "UTF-8");
 
-			final FileWriter aFileWriter = new FileWriter(Property
-					.get("PATH_TO_INDEX_OUTPUT")
-					+ sOutputName);
+      OutputStreamWriter aFileWriter = new OutputStreamWriter(new FileOutputStream(Property.get("PATH_TO_INDEX_OUTPUT") 
+                                                                                   + sOutputName),
+                                                              "UTF-8");
 			aTemplate.merge(IndexGenerator.aVelocityContext, aFileWriter);
 			aFileWriter.close();
 
Received on Tuesday, 23 September 2008 13:54:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:30 UTC