ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Cryder <>
Subject Re: Question about Basedir
Date Tue, 22 Jun 2004 14:25:09 GMT
Stefan Bodewig wrote:

> On Mon, 21 Jun 2004, Christian Cryder <>
> wrote:
>>         <events sourceout="./foo99"
>>descriptor="${build.dir}/event-hierarchy.xml" />
> what does your setSourceout method take as an argument?  A
> or a java.lang.String?

Ah...its taking a String, rather than a File. I'll bet that has 
something to do with it, doesn't it?

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

k, sounds like you've identified my problem. I'll test it out and let 
you know if that works.

Thanks much!

Christian Cryder
Internet Architect,
Project Chair, BarracudaMVC -
"Coffee? I could quit anytime, just not today"

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

View raw message