i know how to get access to the environment varibles ... but i want check if it is set or not.
<property environmetnt="env" /> <property name="tomcathome" value="${env.TOMCAT_HOME}" /> <target name...> <condition property="tomcatset"> <and> <equals arg1="${tomcathome} arg2= ????? /> </and> </condition> </target> but what is ${tomcat} set to if the environment TOMCAT_HOME isn't set ????? Peter -----Ursprüngliche Nachricht----- Von: Peter Donald [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 30. Januar 2002 12:25 An: Ant Users List Betreff: Re: Environment variables On Wed, 30 Jan 2002 22:22, Peter Kesch wrote: > can i check if an environment variable is set or not ???? > i want to copy the JSPs into the Tomcat webapps-directory but it depends on > if the environment variable is set or not because without it i have no > information about the path to the webapps directory .... > > i tried it with the condition task but i have nothing to compare the > variable to ... > > any hints ?? read the docs property task - specifically the environment attribute ;) -- Cheers, Pete ------------------------------------------------- "Sometimes its better to keep your mouth shut and let people think your an idiot, than to open it and remove all doubt." ------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>