ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r292241 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java
Date Wed, 28 Sep 2005 18:31:23 GMT
Author: bodewig
Date: Wed Sep 28 11:31:20 2005
New Revision: 292241

URL: http://svn.apache.org/viewcvs?rev=292241&view=rev
Log:
use our own code

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java?rev=292241&r1=292240&r2=292241&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java Wed
Sep 28 11:31:20 2005
@@ -18,6 +18,7 @@
 
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Project;
+import org.apache.tools.ant.util.FileUtils;
 import org.apache.tools.ant.util.XmlConstants;
 import org.apache.tools.ant.util.JAXPUtils;
 import org.xml.sax.XMLReader;
@@ -389,8 +390,10 @@
                 if (!file.exists()) {
                     throw new BuildException(ERROR_NO_FILE + file);
                 }
+		
                 try {
-                    schema = file.toURL().toString();
+                    schema =
+			FileUtils.getFileUtils().getFileURL(file).toString();
                 } catch (MalformedURLException e) {
                     //this is almost implausible, but required handling
                     throw new BuildException(ERROR_NO_URL_REPRESENTATION + file,e);



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


Mime
View raw message