blob: fcc4dfb7d08c3ac2676ecae0c2fdbae78e15239d [file] [log] [blame]
<project
name="whatisfixed"
default="whatisfixed"
basedir=".">
<!-- = = = standard properties pattern = = = -->
<!--
Note to be cross-platform, "environment variables" are only appropriate for
some variables, e.g. ones we set, since properties are case sensitive, even if
the environment variables on your operating system are not, e.g. it will
be ${env.Path} not ${env.PATH} on Windows -->
<property environment="env" />
<!--
Let users override standard properties, if desired.
If directory, file, or some properties do not exist,
then standard properties will be used.
-->
<property
file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" />
<!-- load standard properties for production environment -->
<property
file="${env.STANDARD_PROPERTIES_DIR}/${ant.project.name}.properties" />
<!-- = = = end standard properties pattern = = = -->
<target
name="whatisfixed"
depends="clean">
<mkdir dir="${whatisfixed.workdir}" />
<antcall target="releng" />
<!-- create what-is-fixed summary files -->
<ant antfile="${wtpBuilder}">
<property
name="wtp.builder.home"
value="${whatisfixed.workdir}/${env.RELENGWTPBUILDER}" />
<property
name="buildBranch"
value="${buildBranch}" />
<property
name="wtpbuilder.whatisfixed.properties.file"
value="${basedir}/whatisfixed.properties" />
</ant>
<antcall target="sync" />
</target>
<target name="releng">
<available
file="${whatisfixed.workdir}/${env.RELENG}/maps/dependencies.properties"
property="map.exists" />
<available
file="${whatisfixed.workdir}/${env.RELENGWTPBUILDER}/scripts/dependency/build.xml"
property="releng.exists" />
<antcall target="checkout-maps" />
<antcall target="getwtpbuilder" />
</target>
<target
name="checkout-maps"
unless="map.exists">
<cvs
quiet="${env.CVS_QUIET}"
reallyquiet="${env.CVS_REALLY_QUIET}"
cvsRoot="${mapCvsRoot}"
package="${env.RELENG}/maps/build.cfg"
dest="${whatisfixed.workdir}"
tag="${wtp.cvsTag}" />
</target>
<target
name="getwtpbuilder"
unless="releng.exists">
<property file="${whatisfixed.workdir}/${env.RELENG}/maps/build.cfg" />
<delete
dir="${whatisfixed.workdir}/${env.RELENGWTPBUILDER}"
failonerror="false" />
<echo
message="Version tag for ${env.RELENGWTPBUILDER} is: ${wtpBuilderVersion}" />
<cvs
quiet="${env.CVS_QUIET}"
reallyquiet="${env.CVS_REALLY_QUIET}"
cvsRoot="${mapCvsRoot}"
package="${env.RELENGWTPBUILDER}"
dest="${whatisfixed.workdir}"
tag="${wtpBuilderVersion}" />
</target>
<target name="clean">
<delete dir="${whatisfixed.workdir}" />
</target>
<target name="sync">
<echo message="RSYNC to: ${uploadRemoteDirectory}" />
<exec executable="rsync">
<arg
line="-e ssh -Cavz ${whatisfixed.dir} ${uploadUser}@${uploadServer}:${uploadRemoteDirectory}" />
</exec>
</target>
</project>