Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <target name="checksw_path" depends="if_windows, if_unix"/>
- <target name="checkos">
- <condition property="isWindows">
- <os family="windows" />
- </condition>
- <condition property="isLinux">
- <os family="unix" />
- </condition>
- </target>
- <target name="if_windows" depends="checkos" if="isWindows">
- <property name="sw.root" value="c:flag" />
- <echo message="${sw.root}"/>
- </target>
- <target name="if_unix" depends="checkos" if="isLinux">
- <property name="sw.root" value="/opt/flag" />
- <echo message="${sw.root}"/>
- </target>
- <condition property="isWindows">
- <os family="windows" />
- </condition>
- <condition property="isLinux">
- <os family="unix" />
- </condition>
- <target name="checkos">
- <condition property="isWindows" value="true">
- <os family="windows" />
- </condition>
- <condition property="isLinux" value="true">
- <os family="unix" />
- </condition>
- </target>
Add Comment
Please, Sign In to add comment