Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 99718 invoked from network); 28 Sep 2005 18:31:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2005 18:31:46 -0000 Received: (qmail 32011 invoked by uid 500); 28 Sep 2005 18:31:44 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 31971 invoked by uid 500); 28 Sep 2005 18:31:44 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 31958 invoked by uid 500); 28 Sep 2005 18:31:43 -0000 Received: (qmail 31955 invoked by uid 99); 28 Sep 2005 18:31:43 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 28 Sep 2005 11:31:43 -0700 Received: (qmail 95694 invoked by uid 65534); 28 Sep 2005 18:31:23 -0000 Message-ID: <20050928183123.95693.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: ant-cvs@apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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