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>
|