ant-user mailing list archives

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

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

what does your setSourceout method take as an argument?  A 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

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).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message