Using ant to detect os and set property

Move your condition out of the <target />, as your target probably isn’t invoked.

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

 <condition property="isLinux">
                    <os family="unix" />
 </condition>

Leave a Comment