ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@seessle.de>
Subject Re: NPE in Project.resoveFile
Date Sat, 07 Oct 2000 19:22:05 GMT

----- Original Message -----
From: "Norris Boyd" <nboyd@atg.com>
To: <ant-user@jakarta.apache.org>
Sent: Saturday, October 07, 2000 8:43 PM
Subject: NPE in Project.resoveFile


> The following erroneous buildfile:
>
> <?xml version="1.0" encoding="utf-8"?>
> <project name="Foo" default="package" basedir=".">
>   <target name="copy-properties" depends="prepare">
>     <copydir src="../../../../../../../../foo"
>            dest="."
>            includes="*.java" />
>   </target>
> </project>
>
> causes a NPE in Ant (v 1.1):
>

I just submitted a patch which will throw a BuildException instead:

test8.xml:6: The file or path you specified (..\..\..\..\..\..\..\..\foo) is
invalid releative to C:\VAMOS50\SourceExt

Note however that this fix will not be made for Ant 1.1 but will be
available in the nightly builds (Ant 1.2 alpha) if someone commits it.

Nico



Mime
View raw message