You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2005/09/28 20:31:23 UTC

svn commit: r292241 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java

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