blob: 38e2e45cb82fabf2620e8e851d4f8da4482553b8 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project
name="copyArtifactsEarly"
default="copyArtifactsEarly"
basedir=".">
<!-- = = = standard properties pattern = = = -->
<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"/>
<property
file="${wtp.builder.home}/build.properties"/>
<!-- = = = end standard properties pattern = = = -->
<!-- note, the publish script, as we know it, may not be available if ran outside of Cruisecontrol.
Would need a more general way to specify it, if ran in mulitple environments. -->
<target
name="copyArtifactsEarly"
depends="init, publishSiteEarly,canNotPublishEarly"
if="publishScriptAvailable">
<ant
antfile="${env.RELENG_CONTROL}/cc_copyArtifacts.xml"/>
</target>
<!-- publish site simply prepares the download drop directory, "in place" -->
<target
name="publishSiteEarly"
depends="init">
<!-- publish what we have so far. 'site' prepares things, 'cc_copyArtifacts' copies to artifacts site.
This callback to "generic" script is intentional ... it determines _which_ site routine to call dependent on
the 'distribution' variable.
-->
<ant
antfile="${wtp.builder.home}/build.xml"
target="site"/>
</target>
<!-- simply warning to log, if we can not publish early -->
<target
name="canNotPublishEarly"
depends="init"
unless="publishScriptAvailable">
<echo
level="warning"
message="Could not publish early because no publish script was available"/>
</target>
<target
name="init"
unless="publishEarlyInitialized">
<available
file="${env.RELENG_CONTROL}/cc_copyArtifacts.xml"
property="publishScriptAvailable"/>
<property
name="publishEarlyIntialized"
value="true"/>
</target>
</project>