ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xsli2 <>
Subject a simple question regarding condition if/unless
Date Mon, 21 May 2012 16:06:06 GMT
The target "test" calls two other targets:

<target name="test" depends="testA, testB"/>

Now, I want to add some condition: when the property "abc" is
available(regardless of its value), only run target "testB", skipping
"testA". I know I can use unless="abc" in target "testA" definition block.
The fact is that "testA" is similar pattern:

<target name="testA" depends="testA1, testA2, testA3"/>

So, I have to go to the deep. Right now, I am using:

<target name="testA1" unless="abc">

Same with "testA2" and "testA3". Is there are 10 of them, I have to add
unless="abc" 10 times? Can I add such condition in the target "test" only

Thank you very much.

View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message