]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Another attempt at avoiding build issues (?)
authorAndreas L. Delmelle <adelmelle@apache.org>
Sun, 13 Jul 2008 18:31:30 +0000 (18:31 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Sun, 13 Jul 2008 18:31:30 +0000 (18:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676397 13f79535-47bb-0310-9956-ffa450edef68

src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java

index 743811142ac2faaa5ec254c29163024318b23fd6..ed92a55e03acf345d3f4e5a14d3ad121de7d23d8 100644 (file)
@@ -95,7 +95,7 @@ public class EventProducerCollectorTask extends Task {
                 = (SAXTransformerFactory)SAXTransformerFactory.newInstance();
 
             //Generate fresh generated translation file as template
-            Source src = new StreamSource(getModelFile());
+            Source src = new StreamSource(getModelFile().toURI().toURL().toExternalForm());
             StreamSource xslt1 = new StreamSource(
                     getClass().getResourceAsStream(MODEL2TRANSLATION));
             if (xslt1.getInputStream() == null) {
@@ -109,7 +109,7 @@ public class EventProducerCollectorTask extends Task {
             Node sourceDocument;
             if (resultExists) {
                 //Load existing translation file into memory (because we overwrite it later)
-                src = new StreamSource(getTranslationFile());
+                src = new StreamSource(getTranslationFile().toURI().toURL().toExternalForm());
                 domres = new DOMResult();
                 transformer = tFactory.newTransformer();
                 transformer.transform(src, domres);
@@ -121,7 +121,7 @@ public class EventProducerCollectorTask extends Task {
 
             //Generate translation file (with potentially new translations)
             src = new DOMSource(sourceDocument);
-            Result res = new StreamResult(getTranslationFile());
+            Result res = new StreamResult(getTranslationFile().toURI().toURL().toExternalForm());
             StreamSource xslt2 = new StreamSource(
                     getClass().getResourceAsStream(MERGETRANSLATION));
             if (xslt2.getInputStream() == null) {