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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to