ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Ant and Conditional Expressions1
Date Fri, 04 May 2001 06:08:34 GMT
--- Adam Flegman <adam.flegman@astracon.com.au> wrote:
> Thanks for the idea. Its a pity that something simple like and if
> expression isnt part of the standard ant control flow.

An if-expression is -- just not a test-for-equality. It will likely become
available with Ant2, though.
 
> The source code might come in handy if it is easy enough to find.

See:
  http://jakarta.apache.org/site/cvsindex.html
and follow the instructions for pulling the source from CVS (module name
is jakarta-ant).

> Is there a tool that you can call to dynamically check the current
> running environment and list out all the param value pairs? Such a tool
> would greatly aid in debugging.

I don't know of one, but there's the -debug flag. You'll get substantially
more than just the name-value pairs, so you'll probably want to redirect
the output to a file (you can use -logfile <outfile>, or just do a
redirect). And note: You'll only get the properties that have actually
been set, so any properties you have defined inside targets that you don't
execute won't be included.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Mime
View raw message