Guest User

Untitled

a guest
Sep 21st, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.69 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <project name="test" basedir="." default="main">
  3.  
  4.   <property name="lib.dir.gtk" value="/opt/java_libs/gtk64" />
  5.   <property name="lib.dir.win" value="/opt/java_libs/win" />
  6.  
  7.   <condition property="lib.dir" value="${lib.dir.gtk}" else="${lib.dir.win}">
  8.     <or>
  9.       <and>
  10.         <isset property="${build.os}" />
  11.         <equals arg1="${build.os}" arg2="gtk" />
  12.       </and>
  13.       <and>
  14.         <not><isset property="${build.os}" /></not>
  15.         <os name="Linux" />
  16.       </and>
  17.     </or>
  18.   </condition>
  19.  
  20.   <target name="main">
  21.     <echo message="${build.os}" />
  22.     <echo message="${lib.dir}" />
  23.   </target>
  24.  
  25. </project>
Advertisement
Add Comment
Please, Sign In to add comment