> I need to compile one set of files on linux, another on Solaris and
> a third on WinNT
> 
 > the examples in the docs just show how to test and set
> properties. Very nice.  Now how do I do x if condition1 is true and
> y if condition2 is true?

Brute Force method:

<target name="mumble">
  <!-- only one of the following will be set true -->
  <condition property="isWindoze">
    <os family="windows"/>
  </condition>
  <condition property="isUnix">
    <os family="unix"/>
  </condition>

  <!-- all will be called, but only one will be executed -->
  <antcall target="doWindoze" />
  <antcall target="doUnix" />
  <antcall target="doLinux" />
</target>

<target name="doWindoze" if="isWindoze">
  <!-- all windows specific stuff here -->
</target>

...etc
  


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

Reply via email to