Kamran Hameed wrote:
Folks i have two questions

1. I want to check whether an environment variable is defined or not. e-g i
want to check whether the variable JAVA_HOME is set or not. How can i do
that. Currently the way i am doing that is :

Hello Kamram,
here is my suggested solution

  <property environment="env"/>
       <target name="all" depends="do_if_java_is_true,do_if_java_is_false">
    <target name="do_if_java_is_true" if="env.JAVA_HOME}/>
    <target name="do_if_java_is_false"unless="env.JAVA_HOME"/>
</target>

Regards,
Antoine

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to