ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: Correct Task Behaviour
Date Tue, 16 Oct 2007 14:57:31 GMT
On 10/16/07, Matthew Haynes <matt@matthaynes.net> wrote:
> I think my problem came from accepting the file attribute as a String and
> then converting it to a file in my code.

Yep. If you take a File, Ant does the resolution indeed, using it's
own rule, which is relative to basedir, as others have indicated. When
you do new File(filename), then filename, if relative, will be
relative to the current directory, which may not be the same as
basedir. --DD

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


Mime
View raw message