build.xml
changeset 8004 86885cba1239
parent 7974 d91bd76b1bd0
child 8041 0c0db9e57227
equal deleted inserted replaced
8001:c34340ca5222 8004:86885cba1239
   947     <condition property="osarch" value="">
   947     <condition property="osarch" value="">
   948       <or>
   948       <or>
   949         <equals arg1="${os.arch}" arg2="x86" />
   949         <equals arg1="${os.arch}" arg2="x86" />
   950         <equals arg1="${os.arch}" arg2="i386" />
   950         <equals arg1="${os.arch}" arg2="i386" />
   951         <contains string="${os.name}" substring="Windows" />
   951         <contains string="${os.name}" substring="Windows" />
       
   952         <contains string="${os.name}" substring="OS X" />
   952       </or>
   953       </or>
   953     </condition>
   954     </condition>
   954     <condition property="osarch" value="-x64">
   955     <condition property="osarch" value="-x64">
   955       <or>
   956       <or>
   956         <equals arg1="${os.arch}" arg2="amd64" />
   957         <equals arg1="${os.arch}" arg2="amd64" />
   957         <equals arg1="${os.arch}" arg2="x86_64" />
   958         <equals arg1="${os.arch}" arg2="x86_64" />
   958         <not>
   959         <not>
   959           <contains string="${os.name}" substring="Windows" />
   960           <contains string="${os.name}" substring="Windows" />
   960         </not>
   961         </not>
       
   962         <not>
       
   963           <contains string="${os.name}" substring="OS X" />
       
   964         </not>
   961       </or>
   965       </or>
   962     </condition>
   966     </condition>
   963     <condition property="osarch" value="-ia64">
   967     <condition property="osarch" value="-ia64">
   964       <equals arg1="${os.arch}" arg2="ia64" />
   968       <equals arg1="${os.arch}" arg2="ia64" />
   965     </condition>
   969     </condition>
   970       <equals arg1="${os.arch}" arg2="ppc" />
   974       <equals arg1="${os.arch}" arg2="ppc" />
   971     </condition>
   975     </condition>
   972   </target>
   976   </target>
   973 
   977 
   974   <target name="setup.exists.test">
   978   <target name="setup.exists.test">
   975     <condition property="bin.ext" value="exe" else="bin">
   979     <condition property="bin.ext" value="exe">
   976       <os family="windows" />
   980       <os family="windows" />
       
   981     </condition>
       
   982 
       
   983     <condition property="bin.ext" value="app.tar.gz">
       
   984       <os family="mac" />
       
   985     </condition>
       
   986 
       
   987     <condition property="bin.ext" value="bin">
       
   988       <not>
       
   989         <isset property="${bin.ext}" />
       
   990       </not>
   977     </condition>
   991     </condition>
   978 
   992 
   979     <available file="config/setup-properties-${osname}${osarch}.${bin.ext}" property="setup.exists" value="true" />
   993     <available file="config/setup-properties-${osname}${osarch}.${bin.ext}" property="setup.exists" value="true" />
   980   </target>
   994   </target>
   981 
   995