Guy,

something else i have started using is if i plan to call a target if a property is set, i put the if/unless attributes on that target like so:

<target name="displayPropIfExists" if=${myprop} >
        <echo>${myprop}</echo>
</target>

this is a silly example, but the idea is that if and only if the property exists, the given target will run. unless is used in the opposite manner.


On Aug 14, 2008, at 10:56 AM, Guy Catz wrote:

how can tell if a property is set?

I've tried using contrib this -
<if>
  <equals arg1="${var}" arg2="" />
  <then>

but, if ${var} was never been set, the result is actually FALSE...

I need something like -
<if>
   <set var="${var}" />
   <then>
   ...


[http://www.waves.com/Objects/Images/Others/signature_logo.jpg] Guy Catz
Release Manager


Waves Audio Ltd
Tel: +972 3 608 4041
www.waves.com<http://www.waves.com/> www.maxx.com<http://www.maxx.com/ > www.sound.org<http://www.sound.org/>

This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain confidential or privileged information. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this message is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender and delete the e-mail and attached documents.

















---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to