AW: Detecting what OS you are running...

2006-02-23 Thread Jan.Materne
> > > > ... > plus Another technique is Could be helpful. But it has the drawbacks of like new namespace Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Detecting what OS you are running...

2006-02-23 Thread Tommy Nordgren
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

Re: Detecting what OS you are running...

2006-02-23 Thread Ivan \"Rambius\" Ivanov
Hello, here are some hints. 1) You can use os.name property to find the OS you are running on. 2) If you want to execute a native OS command only on the OS that supports it you can use task with os attribute. See [1] for more details. 3) If you want to run different targets depending on the os yo

Detecting what OS you are running...

2006-02-23 Thread JG
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