ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Corbin <dcor...@users.sourceforge.net>
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>
<target name="ejb-foo" unless="check-ejb-foo" unless="foo-uptotdate">
   <ejb module="foo" />
</target>

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

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

-- 
David Corbin <dcorbin@users.sourceforge.net>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message