ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: Condition as a top level element
Date Fri, 22 Aug 2003 16:40:20 GMT
Should work in ant 1.6
Antoine
----- Original Message ----- 
From: "Inger, Matthew" <inger@Synygy.com>
To: <ant-dev@jakarta.apache.org>
Sent: Friday, August 22, 2003 4:09 PM
Subject: Condition as a top level element


> Is it possible in the future to make <condition> a top level element?
> It's essentially the same idea as <property>, but with restrictions.
> The basic reason is that i'd like to have something like this at the
> top of my project:
> 
> <condition property="script.extension" value=".sh">
>    <os family="unix" />
> </condition>
> 
> <condition property="script.extension" value=".bat">
>    <os family="windows" />
> </condition>
> 
> 
> So that I don't have to muddy up the depend structure in
> order for a target to know what extension to use for a script
> file on the current os.
> 
> Thoughts?
> 


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


Mime
View raw message