ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <>
Subject AW: optional depends for targets
Date Fri, 22 Jul 2011 05:58:42 GMT
I Use the <if> from antcontrib to achieve this.

-----Ursprüngliche Nachricht-----
Von: Vimil Saju [] 
Gesendet: Donnerstag, 21. Juli 2011 23:17
An: Ant Users List
Betreff: optional depends for targets


Is it possible for a target to optionally depend on another target? For example consider 

target A has an optional dependency on target B 
target C depends on target A

When the build is invoked with target C then only targets A and C should get executed in the
order A,C. However if the build is invoked with targets C,B,A then the targets should be executed
in the order B, A, C.


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

View raw message