<project name="test" default="invokeme">

  <target name="check">
    <condition property="yes">
      <isset property="someproperty" />
    </condition>
  </target>

  <target name="x" if="yes">
    <echo message="x" />
  </target>

  <target name="y" unless="yes">
    <echo message="y" />
  </target>

  <target name="invokeme" depends="check,x,y" />
</project>

-Matt



--- "Settle, William" <[EMAIL PROTECTED]>
wrote:
> I am looking for a way to test if a property is set
> and if so, do one
> thing.  If
> it is not set, then do another.  Something like
> 
> if property set
>   do something
> else
>   do something else
> 
> It looks like using the <condition> tag with the
> <isset> tag might work
> but I
> can't figure out how to make it work.
> 
> I would appreciate any help you can give,
> Bill
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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

Reply via email to