aboutsummaryrefslogtreecommitdiffstats
path: root/src/codegen/java
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2008-07-13 18:31:30 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2008-07-13 18:31:30 +0000
commit5744a4c36782d5e8698b903d4e13891d9aff37be (patch)
tree380f1120b8e20c6fc06733340588205ccc1e34ac /src/codegen/java
parentfcabb741e1c100cc2f461f2ebd731f824120c563 (diff)
downloadxmlgraphics-fop-5744a4c36782d5e8698b903d4e13891d9aff37be.tar.gz
xmlgraphics-fop-5744a4c36782d5e8698b903d4e13891d9aff37be.zip
Another attempt at avoiding build issues (?)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676397 13f79535-47bb-0310-9956-ffa450edef68
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) {