On 24 feb 2006, at 00.00, JG wrote:
Hi,
I am writing an ANT config script that is to be used on multiple
platforms
(Windows XP, Mac, Fedora) and I have a target that I want to run a
certain
way for Windows XP and another way for other OS's.
Is there a way to make a target run only for a given OS?
thanks,
joe
<condition property="isDarwin">
<equals arg1="Mac OS X" arg2="${os.name}" />
</condition>
<target name="darwinTarget" if="isDarwin">
...
</target>
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]