ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
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 <> 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"/>
  <echo>Compiler found: ${compiler.found}, type: ${compiler.type}</echo>


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message