ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Corbin <>
Subject if/unless/depends on macrodefs
Date Fri, 05 Mar 2004 13:37:18 GMT
It would be really neat if I could use the if/unless on macrodefs.

I've create a macro for code generation, and I call it 8 times to do stuff.  
Macros make for nice clean "code".  But now that I'm trying to incorporate 
uptodate support, I'm having to introduce a lot of repetative targes with the 
same patterns:

<target name="check-ejb-foo">
   <check-ejb module="foo" />
<target name="ejb-foo" unless="check-ejb-foo" unless="foo-uptotdate">
   <ejb module="foo" />

<target name="allejb" depends="ejb-foo,...." />

instead of
<target name="allejb">
  <ejb module="foo">

David Corbin <>

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

View raw message