ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Using available's property setting ability inside a condition, is it possible?
Date Mon, 11 Nov 2002 08:37:23 GMT
On 09 Nov 2002, David Budworth <dlbant@nustiu.net> wrote:

> The only workaround for this I can find is to do it the old way, of
> multiple targets with an "unless=compiler.type" tag on them.

So I'll try to help to find another one:

  <available file="jikes" filepath="${env.PATH}"
     property="compiler.type" value="jikes"/>
  <available file="javac" filepath="${env.PATH}"
     property="compiler.type" value="javac"/>
  <condition property="compiler.found">
    <isset property="compiler.type"/>
  </condition>
  <echo>Compiler found: ${compiler.found}, type: ${compiler.type}</echo>

Stefan

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


Mime
View raw message