ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: <antcall> vs. ant target
Date Wed, 30 Jul 2003 18:56:37 GMT
All right, not ideal... I am writing some generic
targets for use with different buildfiles via entity
includes.  If one of these targets sets an
intermediate property of some sort during its
execution, it can only be called directly once.  Its
intended use would be via <antcall>.  I guess it would
be less kludgy to simply check the intermediate
property and fail if it is set.

Thanks,
Matt

--- Mark.Gargan@cs.tcd.ie wrote:
> You could stick a nested param element in your
> <antcall> element called
> callType or something like that and then on the
> actual ant target side
> see if a param with the name callType's been
> included. Sound alright?
> 
> From the manual,
>   <target name="default">
>     <antcall target="doSomethingElse">
>       <param name="param1" value="value"/>
>     </antcall>
>   </target>
> 
>   <target name="doSomethingElse">
>     <echo message="param1=${param1}"/>
>   </target>
> 
> Thanks,
> Mark.
> 
> 
> -----Original Message-----
> From: Matt Benson [mailto:gudnabrsam@yahoo.com] 
> Sent: 30 July 2003 19:19
> To: Ant Users List
> Subject: <antcall> vs. ant target
> 
> 
> Has anyone come up with a way to know whether a
> target
> was invoked via <antcall>?  Nothing leaps out at
> me...
> 
> Thanks,
> Matt
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


Mime
View raw message