blob: 7ea97635d0eaf52d4e471ccc87ead44bdd28e35c [file] [log] [blame]
<project name="Build specific targets and properties" default="noDefault" >
<!-- ===================================================================== -->
<!-- Run a given ${target} on all elements being built -->
<!-- Add on <ant> task for each top level element being built. -->
<!-- ===================================================================== -->
<target name="allElements">
<echo message="Target:${target} " />
<echo message="basedir: ${basedir}"/>
<echo message="component: ${component}"/>
<echo message="buildDirectory: ${buildDirectory}"/>
<echo message="baseLocation: ${baseLocation}" />
<ant antfile="${genericTargets}" target="${target}" >
<property name="type" value="feature" />
<property name="id" value="org.eclipse.wst" />
</ant>
</target>
<!-- ===================================================================== -->
<!-- Targets to assemble the built elements for particular configurations -->
<!-- These generally call the generated assemble scripts (named in -->
<!-- ${assembleScriptName}) but may also add pre and post processing -->
<!-- Add one target for each root element and each configuration -->
<!-- ===================================================================== -->
<target name="assemble.org.eclipse.wst">
<property name="archiveName" value="wtp-wst-${buildId}.zip"/>
<ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
</target>
<!-- ===================================================================== -->
<!-- Check out map files from correct repository -->
<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
<!-- ===================================================================== -->
<target name="checkLocal">
<available property="mapsLocal" file="${buildDirectory}/maps" />
</target>
<target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
<!-- *** change the repo info -->
<property name="mapCvsRoot" value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
<property name="mapVersionTag" value="HEAD" />
<cvs cvsRoot="${mapCvsRoot}"
package="org.eclipse.wtp.releng/maps"
dest="${buildDirectory}/maps"
tag="${mapVersionTag}"
/>
<!--tag the map files project-->
<antcall target="tagMapFiles" />
</target>
<target name="tagMapFiles" if="tagMaps">
<cvs dest="${buildDirectory}/maps" command="tag v${timestamp}" />
</target>
<!-- ===================================================================== -->
<!-- Steps to do before setup -->
<!-- ===================================================================== -->
<target name="preSetup">
</target>
<!-- ===================================================================== -->
<!-- Steps to do after setup but before starting the build proper -->
<!-- ===================================================================== -->
<target name="postSetup">
</target>
<!-- ===================================================================== -->
<!-- Steps to do before fetching the build elements -->
<!-- ===================================================================== -->
<target name="preFetch">
</target>
<!-- ===================================================================== -->
<!-- Steps to do after fetching the build elements -->
<!-- ===================================================================== -->
<target name="postFetch">
<!--
<ant antfile="${relengDir}/fetchVendorContent.xml">
<property name="basedir" value="${relengDir}"/>
<property name="buildDirectory" value="${buildDirectory}/plugins"/>
<property name="sdk" value="true"/>
</ant>
-->
</target>
<!-- ===================================================================== -->
<!-- Steps to do before generating the build scripts. -->
<!-- ===================================================================== -->
<target name="preGenerate">
</target>
<!-- ===================================================================== -->
<!-- Steps to do after generating the build scripts. -->
<!-- ===================================================================== -->
<target name="postGenerate">
</target>
<!-- ===================================================================== -->
<!-- Steps to do before running the build.xmls for the elements being built. -->
<!-- ===================================================================== -->
<target name="preProcess">
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
<include name="**/about.mappings" />
</replace>
</target>
<!-- ===================================================================== -->
<!-- Steps to do after running the build.xmls for the elements being built. -->
<!-- ===================================================================== -->
<target name="postProcess">
<condition property="logsAvailable">
<istrue value="${javacVerbose}" />
</condition>
<antcall target="gatherLogs" />
</target>
<!-- ===================================================================== -->
<!-- Steps to do before running assemble. -->
<!-- ===================================================================== -->
<target name="preAssemble">
<ant antfile="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer/build-war.xml">
<property name="baseLocation" value="${baseLocation}"/>
<property name="basedir" value="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer"/>
<property name="buildDirectory" value="${buildDirectory}"/>
</ant>
<!--
<ant antfile="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer/build-war.xml">
<property name="baseLocation" value="${baseLocation}"/>
<property name="buildDirectory" value="${buildDirectory}"/>
</ant>
-->
<!--
<ant antfile="${relengDir}/fetchVendorContent.xml" target="cleanup">
<property name="basedir" value="${relengDir}"/>
<property name="buildDirectory" value="${buildDirectory}/plugins"/>
<property name="sdk" value="true"/>
</ant>
-->
</target>
<!-- ===================================================================== -->
<!-- Steps to do after running assemble. -->
<!-- ===================================================================== -->
<target name="postAssemble">
<!--
<ant antfile="${relengDir}/fetchVendorContent.xml">
<property name="basedir" value="${relengDir}"/>
<property name="buildDirectory" value="${buildDirectory}/plugins"/>
<property name="sdk" value="true"/>
</ant>
-->
</target>
<!-- ===================================================================== -->
<!-- Steps to do after the build is done. -->
<!-- ===================================================================== -->
<target name="postBuild">
</target>
<!-- ===================================================================== -->
<!-- Steps to do to test the build results -->
<!-- ===================================================================== -->
<target name="test">
</target>
<!-- ===================================================================== -->
<!-- Steps to do to publish the build results -->
<!-- ===================================================================== -->
<target name="publish">
</target>
<!-- ===================================================================== -->
<!-- Helper targets -->
<!-- ===================================================================== -->
<target name="gatherLogs" if="logsAvailable">
<mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
<antcall target="allElements">
<param name="target" value="gatherLogs" />
</antcall>
<unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
<fileset dir="${buildDirectory}/features/org.eclipse.wst">
<include name="*.log.zip" />
</fileset>
</unzip>
</target>
<target name="clean" unless="noclean">
<antcall target="allElements">
<param name="target" value="cleanElement" />
</antcall>
</target>
<!-- ===================================================================== -->
<!-- Default target -->
<!-- ===================================================================== -->
<target name="noDefault">
<echo message="You must specify a target when invoking this file" />
</target>
</project>