ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r349785 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java
Date Tue, 29 Nov 2005 18:34:28 GMT
Author: antoine
Date: Tue Nov 29 10:34:17 2005
New Revision: 349785

URL: http://svn.apache.org/viewcvs?rev=349785&view=rev
Log:
use SystemId from JAXPUtils, can be better

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java?rev=349785&r1=349784&r2=349785&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java
Tue Nov 29 10:34:17 2005
@@ -26,6 +26,7 @@
 import javax.xml.parsers.DocumentBuilderFactory;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.Task;
+import org.apache.tools.ant.util.JAXPUtils;
 import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.ClassFile;
 import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.ClassPathLoader;
 import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.MethodInfo;
@@ -194,7 +195,7 @@
         InputSource is = new InputSource(new FileInputStream(file));
         if (jprobeHome != null) {
             File dtdDir = new File(jprobeHome, "dtd");
-            is.setSystemId("file:///" + dtdDir.getAbsolutePath() + "/");
+            is.setSystemId(JAXPUtils.getSystemId(dtdDir));
         }
         report = dbuilder.parse(is);
         report.normalize();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message