blob: bcaacd290d0848a7e3302ab026d38ad6b55db5fa [file] [log] [blame]
<project default="build" basedir=".">
<target name="build" depends="getBaseBuilder">
<dirname file="${ant.file}" property="distribution.wtp.build.dir" />
<property file="${wtp.builder.home}/build.properties" />
<property name="buildTargets" value="${wtp.builder.home}/scripts/build/runbuild.xml" />
<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>
<ant antfile="${wtp.builder.home}/scripts/build/label.xml" />
<antcall target="package"/>
<!-- todo: all-one's will have to be moved after 'package' now -->
</target>
<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" />
<ant antfile="${buildTargets}" target="getBaseBuilder">
<property name="eclipse.builder.fetch" value="${eclipse.builder.fetch}" />
</ant>
</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>
</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>
<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>