On Tue, 24 Jan 2006, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> I think this is finally what I've been struggling with. It doesn't
> seem to work when the env variable actually exists. Here is my
> macro:
>
> =============================
> <macrodef name="check-for-ext">
> <sequential>
> <echo>${env.DAVINCI_EXT}</echo>
> <fail>
> <condition>
> <not>
> <isset property="${env.DAVINCI_EXT}"/>
${env.DAVINCI_EXT} expands the property and you get its value, the
isset condition wants the name of the property. Make that
<isset property="env.DAVINCI_EXT"/>
and it will work.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]