ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Question about Basedir
Date Tue, 22 Jun 2004 06:26:34 GMT
On Mon, 21 Jun 2004, Christian Cryder <christianc@granitepeaks.com>
wrote:

>          <events sourceout="./foo99"
> descriptor="${build.dir}/event-hierarchy.xml" />

what does your setSourceout method take as an argument?  A
java.io.File or a java.lang.String?

> foo88 DOES get created below /bin.

Which uses <mkdir> which in turn uses a File argument.

> foo99 however, gets created one directory up from that, below
> WEB-INF.

Sounds as if you'd be resolving files yourself instead of letting Ant
do it.

When you run <ant dir="..."/> this will not change the current working
directory of the Java VM, so any "new File(string)" will be relative
to your current working directory.

On the other hand the setXYZ methods taking a File argument get a
special treatment by Ant.  All relative paths are resolved relative to
the current project's basedir (ignoring the CWD).

Stefan

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


Mime
View raw message