ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sullivan, Sean C - MWT" <Sullivan.S...@menlolog.com>
Subject <AntCall> - using "if" for conditional invocation?
Date Tue, 05 Aug 2003 21:40:31 GMT

I am using Ant 1.5.3

I'd like to be able to do this:

#######################################

<target name="foo">
    <antcall if="do.bar" target="bar">
    </antcall>
  </target>

<target name="bar">
   <echo message="Ant is cool. "/>
</target>

#######################################

This code won't execute in Ant 1.5.3

Ant prints this message:

BUILD FAILED
file:C:/build/apps/build/build.xml:271: 
  The <antcall> task doesn't support the "if" attribute.


Is there a workaround?

Will <antcall> ever support the "if" attribute?

Thanks.

-Sean


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


Mime
View raw message