ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Setting properties -- Best Practices question
Date Fri, 09 Apr 2004 21:16:08 GMT
> From: Jack Woehr [mailto:jax@purematrix.com]
> 
> Is it "good Ant style" to do the following, i.e., depend on the
> immutability of a property to do
> a simple choice point, as in choosing between two files based on the
> existence-or-nonexistence
> of the first one tested?
> 
>      ...
>      <available file="somepath" property="file-to-use"/>
>      <property name="file-to-use" value="some-other-path"/>
>      ...

Very much so in my book. --DD

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


Mime
View raw message