<target name="foo"> <antcall target="bar"> <param name="do.bar" value="true"/> </antcall> </target>
<target name="bar" if="do.bar"> <echo message="Ant is cool. "/> </target>
Sullivan, Sean C - MWT wrote:
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- ______________________________________________
Daniel Henrique Alves Lima, Software Engineer
CiT Systems - Software enabling the e-world
[EMAIL PROTECTED]
http://www.cit.com.br
Phone: +55 19 3737 4596
+55 19 3737 4500
Fax: +55 19 3737 4501 _________________________________________________________________________
"Spike once ask me... What does it take for a soldier to become a leader... What differentiates the two ?
There is no difference. Sometimes certain soldiers are chosen to lead
other soldiers. (...) But they never stop being soldiers.
Because when the stakes are high... When the battle burns... When
the death seems near... You either fight or your don't. You're either a
soldier or you're not. (...) I'm a soldier. I fight. That's what i do."
Optimus Prime : TF - G1 : DW _________________________________________________________________________
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]