Java Mailing List Archive

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

Home » Ant Developers List »

AW: Need documentation change for if / unless

Rainer Noack

2008-02-02

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi Dean,

${} refers to the value of a property.
if / unless attributes refers to the existence (i.e. name) of a property.

IMHO, the different notation is reasonable.

However, this syntax and behaviour is pointed out explicitely in the manual:
->Using Ant->Targets

Cheers

Rainer

-----Ursprüngliche Nachricht-----
Von: Dean Schulze [mailto:dean_w_schulze@(protected)]
Gesendet: Samstag, 2. Februar 2008 16:15
An: dev@(protected)
Betreff: Need documentation change for if / unless


I filed this bug regarding the use of the if and unless attributes of
<target>:

http://issues.apache.org/bugzilla/show_bug.cgi?id=44315

Matt Benson pointed out that the problem is that you don't use the ${}
notation when naming a property in an if or unless attribute. This is
confusing because everywhere else in Ant when you reference a property you
use the ${} notation.

The documentation for Targets doesn't mention this:

http://ant.apache.org/manual/using.html#targets

The fact that you don't use ${} notation for the if / unless attributes
needs be made explicit in the documentation.

Are there any other places where you use a property without using the ${}
notation? If so these also need to be made explicit. If the if / unless
attributes are the only place where this applies that should also be noted
in the documentation for if / unless.

Thanks.

Dean


   
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
now.


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

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