Thanks Stefan .. it works fine und with the avaible task i can check if the
directory exists ...
Do you know why Ant compiles all java files even if no one is changed ??? i
tried it with this ...
<javac srcdir="${basedir}\Layoutengine" destdir="${temp.dir}\layoutengine" >
<include name="**\*.java" />
<classpath>
<path refid="classpath" />
</classpath>
</javac>
Everytime i call the task, all files get compiled.The class files are not
deleted between 2 calls ...
Peter
-----Ursprungliche Nachricht-----
Von: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 30. Januar 2002 12:55
An: [EMAIL PROTECTED]
Betreff: Re: Environment variables
On Wed, 30 Jan 2002, Peter Kesch <[EMAIL PROTECTED]> wrote:
> <property environmetnt="env" />
> <property name="tomcathome" value="${env.TOMCAT_HOME}" />
>
> <condition property="tomcatset">
> <and>
> <equals arg1="${tomcathome} arg2= ????? />
> </and>
> </condition>
>
> but what is ${tomcat} set to if the environment TOMCAT_HOME isn't
> set ?????
${env.TOMCAT_HOME} literally. So arg2 would be $${env.TOMCAT_HOME},
note the double $ sign.
In Ant 1.5 there will be an <isset> condition.
Stefan
--
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]>