ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: <AntCall> - using "if" for conditional invocation?
Date Wed, 06 Aug 2003 05:14:37 GMT
Then use the <if> task of Ant-Contrib.


Jan

> -----Original Message-----
> From: Daniel H A Lima [mailto:lima@cit.com.br]
> Sent: Tuesday, August 05, 2003 11:50 PM
> To: Ant Users List
> Subject: Re: <AntCall> - using "if" for conditional invocation?
> 
> 
>     You can use the construction below...But i dont know if this will 
> cause the same effect !
> 
> <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: user-unsubscribe@ant.apache.org
> >For additional commands, e-mail: user-help@ant.apache.org
> >
> >  
> >
> 
> -- 
> ______________________________________________
> 
> Daniel Henrique Alves Lima, Software Engineer
> CiT Systems - Software enabling  the e-world
> lima@cit.com.br
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message