blob: 204520bc5a80a2438e73927ff6d79c98c5c2ba89 [file] [log] [blame]
<project
default="build"
basedir=".">
<fail
unless="wtp.builder.home" />
<property
file="${wtp.builder.home}/build.properties" />
<!-- main -->
<target
name="build"
depends="getBaseBuilder">
<dirname
file="${ant.file}"
property="distribution.wtp.build.dir" />
<property
name="buildTargets"
value="${wtp.builder.home}/scripts/build/runbuild.xml" />
<echo
level="info"
message="invoking buildTargets: ${buildTargets} to build for each component" />
<ant
antfile="${buildTargets}">
<property
name="component"
value="wst" />
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="wst-sdk" />
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="wst.tests" />
<property
name="eclipseBuildFailOnError"
value="false" />
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="jst" />
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="jst-sdk" />
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="jst.tests" />
<property
name="eclipseBuildFailOnError"
value="false" />
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="dali" />
<property
name="eclipseBuildFailOnError"
value="false" />
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="dali-sdk" />
<property
name="eclipseBuildFailOnError"
value="false" />
</ant>
<ant
antfile="${buildTargets}">
<property
name="component"
value="dali.tests" />
<property
name="eclipseBuildFailOnError"
value="false" />
</ant>
<!-- calling label.xml to createg label.properties file -->
<ant
antfile="${wtp.builder.home}/scripts/build/label.xml" />
<!-- package -->
<antcall
target="package" />
</target>
<!-- invoking runbuild.xml targetting getBaseBuilder -->
<target
name="getBaseBuilder"
if="eclipse.builder.fetch">
<dirname
file="${ant.file}"
property="wtbuilder.dir" />
<property
name="buildTargets"
value="${wtp.builder.home}/scripts/build/runbuild.xml" />
<echo
level="info"
message="invoking buildTargets: ${buildTargets} -> getBaseBuilder" />
<ant
antfile="${buildTargets}"
target="getBaseBuilder" />
</target>
<target
name="package">
<!-- post, post packaging, for WTP ... "manually" assemble the desired zips -->
<antcall
target="combineArchives">
<param
name="corename"
value="" />
</antcall>
<antcall
target="combineArchives">
<param
name="corename"
value="-sdk" />
</antcall>
<antcall
target="combineArchives">
<param
name="corename"
value="-Automated-Tests" />
</antcall>
<antcall
target="createNoOptionalZip">
<param
name="archiveName"
value="wtp-${buildLabel}.zip" />
<param
name="newarchiveName"
value="wtp-noop-${buildLabel}.zip" />
</antcall>
<antcall
target="createNoOptionalZip">
<param
name="archiveName"
value="wtp-sdk-${buildLabel}.zip" />
<param
name="newarchiveName"
value="wtp-sdk-noop-${buildLabel}.zip" />
</antcall>
</target>
<target
name="createNoOptionalZip">
<zip
destfile="${buildDirectory}/${buildLabel}/${newarchiveName}">
<zipfileset
src="${buildDirectory}/${buildLabel}/${archiveName}"
excludes="eclipse/plugins/org.eclipse.jst.ws.axis2*/**,eclipse/plugins/org.eclipse.jst.jsf.apache.trinidad.tagsupport*/**,eclipse/plugins/org.eclipse.jst.pagedesigner*/**,eclipse/features/org.eclipse.jst.ws.axis2tools*/**,eclipse/features/org.eclipse.jst.webpageeditor*/**,eclipse/features/org.eclipse.jst.jsf.apache.trinidad.tagsupport.feature*/**" />
</zip>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
target="createChecksums">
<property
name="buildDirectory"
value="${buildDirectory}" />
<property
name="buildLabel"
value="${buildLabel}" />
<property
name="archiveName"
value="${newarchiveName}" />
</ant>
</target>
<target
name="combineArchives">
<property
name="archiveName"
value="wtp${corename}-${buildLabel}.zip" />
<delete
dir="${buildDirectory}/tempforrezipping"
failonerror="false" />
<exec
dir="${buildDirectory}/${buildLabel}"
executable="unzip"
failonerror="false">
<arg
line="-o -qq wtp-wst${corename}-${buildLabel}.zip -d ${buildDirectory}/tempforrezipping" />
</exec>
<exec
dir="${buildDirectory}/${buildLabel}"
executable="unzip"
failonerror="false">
<arg
line="-o -qq wtp-jst${corename}-${buildLabel}.zip -d ${buildDirectory}/tempforrezipping" />
</exec>
<!-- there is no jsf zip, any longer, so this results in spurious error messages in log
<exec
dir="${buildDirectory}/${buildLabel}"
executable="unzip"
failonerror="false">
<arg
line="-o -qq wtp-jsf${corename}-${buildLabel}.zip -d ${buildDirectory}/tempforrezipping" />
</exec>
-->
<exec
dir="${buildDirectory}/${buildLabel}"
executable="unzip"
failonerror="false">
<arg
line="-o -qq wtp-jpt${corename}-${buildLabel}.zip -d ${buildDirectory}/tempforrezipping" />
</exec>
<zip
destfile="${buildDirectory}/${buildLabel}/${archiveName}"
basedir="${buildDirectory}/tempforrezipping" />
<delete
dir="${buildDirectory}/tempforrezipping"
failonerror="false" />
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
target="createChecksums">
<property
name="buildDirectory"
value="${buildDirectory}" />
<property
name="buildLabel"
value="${buildLabel}" />
<property
name="archiveName"
value="${archiveName}" />
</ant>
</target>
</project>