I am trying to convert an Ant script that I have that needs to know which OS it is currently running on. I took the statements
condition property="isUnix">
<os family="unix"/>
</condition>


<condition property="isWindows">
<os family="windows"/>
</condition>
and put them in my maven.xml as


         <ant:condition property="isUnix">
             <ant:os family="unix"/>
         </ant:condition>

         <ant:condition property="isWindows">
             <ant:os family="windows"/>
             </ant:condition>

But when I run, neither property is being set.

I've scanned the plugin.jelly files and none are using this condition. Is there a better way to determine what
OS is being used?


The reason for the test is that I need to run the Ant task pathconvert which needs to know the target OS.

--
Erik Husby
Team Lead for Software Quality Automation
Genome Center at MIT
Rm. 2192
320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669
office: 617.258.9227
[EMAIL PROTECTED]



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



Reply via email to