ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Vernum <Tim.Ver...@macquarie.com.au>
Subject RE: if and unless attributes for all Tasks
Date Mon, 21 May 2001 09:27:43 GMT
From: Alan George [mailto:alang@hereuare.com]

> Without if/unless for tasks and using the most frequently offered
> alternative, I would need to wrap all 31 ant calls in a 
> target.  

Well, if I understand your use case (and I'm not sure I do),
then how's this for an alternative? (Attached buildfile)

It's not as clean as it could be, but since I whipped it up
in a few minutes, it's not really supposed to be.

If it doesn't do what you need, then please (if possible)
post your buildfile (using either 186 targets, or with task
level if/unless) and I'll see if I can come up with an 
alternative method.


begin 600 alan.xml
M/#]X;6P@=F5R<VEO;CTB,2XP(C\^#0H-"CQP<F]J96-T(&YA;64](G!R;VIE
M8W0B(&1E9F%U;'0](FUA:6XB(&)A<V5D:7(](BXB/@T*#0H@(#QT87-K9&5F
M(&YA;64](F-O<'DM<')O<&5R=&EE<R(@8VQA<W-N86UE/2)O<F<N87!A8VAE
M+G1O;VQS+F%N="YT87-K9&5F<RYO<'1I;VYA;"Y#;W!Y4')O<&5R='DB+SX-
M"@T*("`\=&%R9V5T(&YA;64](G-U8BUB=6EL9"(@:68](F)U:6QD9FEL92YA
M=F%I;&%B;&4B/@T*"3QE8VAO(&UE<W-A9V4](D-A;&QI;F<@)'MT87)G971]
M(&9O<B`D>VUO9'5L97TB+SX-"@D\86YT(&1I<CTB)'MM;V1U;&5](B!T87)G
M970](B1[=&%R9V5T?2(O/@T*("`\+W1A<F=E=#X-"@T*("`\=&%R9V5T(&YA
M;64](F)U:6QD+6UO9'5L92(^#0H)/&%V86EL86)L92!P<F]P97)T>3TB8G5I
M;&1F:6QE+F%V86EL86)L92(@9FEL93TB)'MM;V1U;&5]+V)U:6QD+GAM;"(O
M/@T*"3QE8VAO(&UE<W-A9V4](D%T=&5M<'1I;F<@)'MT87)G971](&9O<B`D
M>VUO9'5L97TB+SX-"@D\86YT8V%L;"!T87)G970](G-U8BUB=6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