On 11 Nov 2002, David Budworth <[EMAIL PROTECTED]> wrote:

> Actually, this is what I tried from the start But you get a
> deprecation warning about using available to overwrite an existing
> property

OK, so instead of

>>   <available file="jikes" filepath="${env.PATH}"
>>      property="compiler.type" value="jikes"/>
>>   <available file="javac" filepath="${env.PATH}"
>>      property="compiler.type" value="javac"/>

You could use

<available file="jikes" filepath="${env.PATH}"
           property="compiler.type" value="jikes"/>
<condition property="compiler.type" value="javac">
  <and>
    <not>
      <isset property="compiler.type"/>
    </not>
    <available file="javac" filepath="${env.PATH}"/>
  </and>
</condition>

Still easier than your version.

Stefan

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

Reply via email to