aboutsummaryrefslogtreecommitdiffstats
path: root/src/codegen/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen/java')
-rw-r--r--src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java6
1 files changed, 3 insertions, 3 deletions
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) {