ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Inger <>
Subject Re: Conditional ANT building
Date Thu, 09 Aug 2001 16:35:00 GMT wrote:

>Since some of the tasks differ between 1.3 and 1.4alpha/beta, I want to
>perform different things for different ANT versions.  
>I can obtain the ANT version using the property, but is
>there some way to say:
>if ${} == "1.3" 
>   echo "Using ANT 1.3"
>else if ${} == "1.4"
>   do something else....
>Is this possible?
>This email may contain information which is privileged or confidential. If you are not
the intended recipient of this email, please notify the sender immediately and delete it without
reading, copying, storing, forwarding or disclosing its contents to any other person
>Thank you
>Check us out at

<target name="performtasks-1.3">

<target name="performtasks-1.4">

<target name="performtasks">
 <antcall target="performtasks-${}" />

however, i don't think that's the property you really want,
since actually returns the version of the current
virtual machine, not the version of ant.

Matt Inger (
Sedona Corporation
455 S. Gulph Road, Suite 300
King of Prussia, PA 19406
(484) 679-2213
"Self-respect - the secure feeling that no one,
 as yet, is suspicious." -H.L. Mencken 

View raw message