For example I have a product with scripts foo.sh and foo.bat. Now I want
to have an exec task in my build.xml such as:
<exec executable="foo.${property}">
<arg line="some value">
</exec>
Can ${property} be set to ".sh" or ".bat" depending upon whether it's a
solaris platform or win32 platform ?
Regards,
-Arun
Erik Hatcher wrote:
>I assume you mean for things like <copy> and <zip> and such. Look into tags
>such as <condition> to set a property for a particular O/S type, and using
>if/unless on <patternset> to conditionally include/exclude files based on
>existence of properties.
>
> Erik
>
>
>----- Original Message -----
>From: "Arun Gupta" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, April 25, 2002 7:23 PM
>Subject: Platform specific extensions
>
>
>>Hi,
>>
>>I have .sh and .bat files for a multi-platform product. How can I tell
>>build.xml to pick up correct extension file on a particular platform ?
>>
>>Regards,
>>-Arun
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>>
>>
>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
=============================================
There is only one me, I must live myself!
There is only one today, I must live itself!
=============================================
http://members.tripod.com/~apgupta/index.html
=============================================
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>