maybe you can use the condition task? from the manual:
<condition property="isMacOsButNotMacOsX">
<and>
<os family="mac" />
<not>
<os family="unix" />
</not>
</and>
</condition>
sets the property isMacOsButNotMacOsX if the current operating system is
MacOS, but not MacOS X - which Ant considers to be in the Unix family as
well.
you can use the values "windows", "dos", "mac", and "unix".
Regards,
Knut Wannheden
> -----Original Message-----
> From: Siamack Farshi [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 7. Januar 2002 18:02
> To: '[EMAIL PROTECTED]'
> Subject: A simple question
>
>
> Hello Everyone:
> I am new in ant and I was wondering if anyone can give me a hint.
> I am trying to define a property called "platform" which
> holds the value
> of "NT" for windows platform and the value of "Solaris" for solaris
> platform. Does any one knows how this can be done within the
> property tag? or there is some way around it?
>
> I would appreciate all you replies in advance.
> cheers,
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>