You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Barry Nauta <ba...@switch.be> on 2000/08/04 10:30:54 UTC
Newbie question
Hello,
probably a simple question.
<target name="build-module-a" if="module-A-present">
This would execute only if the property is set. Is there a way to check if a
value not is set? (This will be practical if certain libraries are not
present, recompile them and put the jar's in the right location so they can
be used by the project)
Thanks,
Barry
Anything you do will be insignificant, but it is very important that you do
it
-- Mahatma Gandhi
Re: Newbie question
Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "BN" == Barry Nauta <ba...@switch.be> writes:
BN> Hello, probably a simple question.
BN> <target name="build-module-a" if="module-A-present">
BN> Is there a way to check if a value not is set?
Speaking of Ant 1.1, there is:
<target name="build-module-a" unless="module-A-present">
Stefan
Re: Newbie question
Posted by Peter Donald <do...@mad.scientist.com>.
>probably a simple question.
><target name="build-module-a" if="module-A-present">
>This would execute only if the property is set. Is there a way to check if a
>value not is set? (This will be practical if certain libraries are not
present,
>recompile them and put the jar's in the right location so they can be used
by
>the project)
yup - use "unless" instead of "if" :P
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*