| <project default="build" basedir="."> |
| |
| |
| |
| <target name="build" depends="getBaseBuilder"> |
| <dirname file="${ant.file}" property="distribution.dltk.build.dir" /> |
| <property file="${dltk.builder.home}/build.properties" /> |
| <property name="buildTargets" value="${dltk.builder.home}/scripts/build/runbuild.xml" /> |
| |
| |
| <!--ant antfile="${buildTargets}"> |
| <property name="component" value="installer" /> |
| </ant--> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="core" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="core-sdk" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="core.tests" /> |
| <property name="eclipseBuildFailOnError" value="false" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="rse" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="rse-sdk" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="mylyn" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="mylyn-sdk" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="javascript" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="javascript-sdk" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="javascript.tests" /> |
| <property name="eclipseBuildFailOnError" value="false" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="ruby" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="ruby-sdk" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="ruby.tests" /> |
| <property name="eclipseBuildFailOnError" value="false" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="tcl" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="tcl-sdk" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="tcl.tests" /> |
| <property name="eclipseBuildFailOnError" value="false" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="python" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="python-sdk" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="python.tests" /> |
| <property name="eclipseBuildFailOnError" value="false" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="xotcl" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="xotcl-sdk" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="xotcl.tests" /> |
| <property name="eclipseBuildFailOnError" value="false" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="itcl" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="itcl-sdk" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="itcl.tests" /> |
| <property name="eclipseBuildFailOnError" value="false" /> |
| </ant> |
| |
| <ant antfile="${buildTargets}"> |
| <property name="component" value="performance.tests" /> |
| <property name="eclipseBuildFailOnError" value="false" /> |
| </ant> |
| |
| <ant antfile="${dltk.builder.home}/scripts/build/label.xml" /> |
| <antcall target="package"/> |
| |
| </target> |
| |
| <target name="getBaseBuilder" if="eclipse.builder.fetch"> |
| <dirname file="${ant.file}" property="wtbuilder.dir" /> |
| <property name="buildTargets" value="${dltk.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 DLTK ... "manually" assemble the desired zips --> |
| |
| <antcall target="combineArchives"> |
| <param name="corename" value=""/> |
| </antcall> |
| |
| <antcall target="combineArchives"> |
| <param name="corename" value="-sdk"/> |
| </antcall> |
| |
| <antcall target="combineArchivesTests"> |
| <param name="corename" value="-Automated_Tests"/> |
| </antcall> |
| |
| </target> |
| <target name="combineArchives"> |
| <property name="archiveName" value="dltk${corename}-${buildLabel}-incubation.zip" /> |
| <delete dir="${buildDirectory}/tempforrezipping" failonerror="false"/> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-core${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-ruby${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-tcl${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-python${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-javascript${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-xotcl${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-itcl${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-rse${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <zip destfile="${buildDirectory}/${buildLabel}/${archiveName}" basedir="${buildDirectory}/tempforrezipping" /> |
| |
| <delete dir="${buildDirectory}/tempforrezipping" failonerror="false"/> |
| |
| <ant antfile="${dltk.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> |
| |
| <target name="combineArchivesTests"> |
| <property name="archiveName" value="dltk${corename}-${buildLabel}-incubation.zip" /> |
| <delete dir="${buildDirectory}/tempforrezipping" failonerror="false"/> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-core${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-ruby${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-tcl${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-python${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-javascript${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-xotcl${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-itcl${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <exec dir="${buildDirectory}/${buildLabel}" executable="unzip" failonerror="false"> |
| <arg line="-o -qq dltk-performance${corename}-${buildLabel}-incubation.zip -d ${buildDirectory}/tempforrezipping" /> |
| </exec> |
| |
| <zip destfile="${buildDirectory}/${buildLabel}/${archiveName}" basedir="${buildDirectory}/tempforrezipping" /> |
| |
| <delete dir="${buildDirectory}/tempforrezipping" failonerror="false"/> |
| |
| <ant antfile="${dltk.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> |