Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

"available" appears to get confused if I use "-f buildfile"

KARR, DAVID (ATTCINW)

2010-08-19

Replies: Find Java Web Hosting

Author LoginPost Reply
I have a build file that gets imported into my current build file. The
imported build file has an "available" task to set a property if a
particular directory exists, in the current directory.

I have a situation where I might instead have to not have that "import",
but instead do a "ant -f ../.../otherbuildfile <target>".

I tried doing this, and it appears that the "available" task didn't look
in the current directory, but in the directory where the (formerly)
imported build file resides. I verified this with a file io monitor.
It looked for my directory in the directory with the build file, not the
current directory.

Is there a straightforward way to make "available" look in the current
directory instead?

I'm using Ant 1.7.1.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.