From: Andreas L. Delmelle Date: Sun, 13 Jul 2008 18:31:30 +0000 (+0000) Subject: Another attempt at avoiding build issues (?) X-Git-Tag: fop-1_0~500 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5744a4c36782d5e8698b903d4e13891d9aff37be;p=xmlgraphics-fop.git Another attempt at avoiding build issues (?) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676397 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java b/src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java index 743811142..ed92a55e0 100644 --- a/src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java +++ b/src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java @@ -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) {