blob: 2677d3c6aec240f7c52811aa2ab6dbf5da8f3d61 [file] [log] [blame]
<project default="all">
<property file="trigger.properties" />
<property file="../maps/build.cfg" />
<target name="all">
<antcall target="getDrivers" />
<copy todir="${env.BUILD_HOME}/${localDrivers}" overwrite="true">
<fileset dir="${env.BUILD_HOME}/${build.drivers}" >
<include name="**/GEF*.*"/>
<include name="**/emf*.*"/>
<include name="**/JEM*.*"/>
</fileset>
</copy>
<echo message="RSYNC TO: ${ftpUser}@${ftpServer}:${remoteDrivers}" />
<exec executable="rsync">
<arg line="-e ssh -Cavz ${env.BUILD_HOME}/${localDrivers} ${ftpUser}@${ftpServer}:${remoteDrivers}" />
</exec>
</target>
<target name="getDrivers">
<available file="${env.BUILD_HOME}/${build.drivers}/${emfFile}" property="emf.exists" />
<available file="${env.BUILD_HOME}/${build.drivers}/${gefFile}" property="gef.exists" />
<available file="${env.BUILD_HOME}/${build.drivers}/${jemFile}" property="jem.exists" />
<antcall target="getEmf" />
<antcall target="getGef" />
<antcall target="getJem" />
</target>
<target name="getEmf" unless="emf.exists">
<get src="${emfURL.primary}" dest="${env.BUILD_HOME}/${build.drivers}/${emfFile}" />
</target>
<target name="getGef" unless="gef.exists">
<get src="${gefURL.primary}" dest="${env.BUILD_HOME}/${build.drivers}/${gefFile}" />
</target>
<target name="getJem" unless="jem.exists">
<get src="${jemURL.primary}" dest="${env.BUILD_HOME}/${build.drivers}/${jemFile}" />
</target>
</project>