| <?xml version="1.0" encoding="UTF-8"?> |
| <project |
| default="build" |
| basedir="."> |
| <fail |
| unless="wtp.builder.home"/> |
| <property |
| file="${wtp.builder.home}/build.properties"/> |
| <property |
| environment="env"/> |
| |
| <!-- required to get proper value of doCreateFprojZips --> |
| <property |
| name="keyCfgFile" |
| value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/> |
| <echo |
| level="info" |
| message="keyCfgFile: ${keyCfgFile}"/> |
| <property |
| file="${keyCfgFile}"/> |
| |
| <echo |
| message="transformedRepoLocation: ${transformedRepoLocation}"/> |
| <mkdir |
| dir="${transformedRepoLocation}"/> |
| |
| |
| <!-- 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"/> |
| |
| <property |
| name="dependency.properties" |
| value="${buildDirectory}/maps/${env.RELENG}/${dependencyFileLocation}"/> |
| |
| |
| <!-- calling label.xml to createg label.properties file --> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/label.xml"/> |
| <echo |
| level="info" |
| message="invoking buildTargets: ${buildTargets} to build for each component"/> |
| <ant |
| antfile="${buildTargets}"> |
| <property |
| name="component" |
| value="wst-sdk"/> |
| </ant> |
| <ant |
| antfile="${buildTargets}"> |
| <property |
| name="component" |
| value="wst.tests"/> |
| <property |
| name="eclipseBuildFailOnError" |
| value="true"/> |
| </ant> |
| <ant |
| antfile="${buildTargets}"> |
| <property |
| name="component" |
| value="jst-sdk"/> |
| </ant> |
| <ant |
| antfile="${buildTargets}"> |
| <property |
| name="component" |
| value="jst.tests"/> |
| <property |
| name="eclipseBuildFailOnError" |
| value="true"/> |
| </ant> |
| |
| <ant |
| antfile="${buildTargets}"> |
| <property |
| name="component" |
| value="dali-sdk"/> |
| <property |
| name="eclipseBuildFailOnError" |
| value="true"/> |
| </ant> |
| |
| |
| <ant |
| antfile="${buildTargets}"> |
| <property |
| name="component" |
| value="dali.tests"/> |
| <property |
| name="eclipseBuildFailOnError" |
| value="true"/> |
| </ant> |
| |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/runAntRunner.xml"> |
| <property |
| name="antrunnerfile" |
| value="${wtp.builder.home}/distribution/wtp.build/createFinalRepo.xml"/> |
| </ant> |
| |
| <!-- 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 |
| --> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/runAntRunner.xml"> |
| <property |
| name="antrunnerfile" |
| value="${wtp.builder.home}/distribution/wtp.build/createmainzips.xml"/> |
| </ant> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/runAntRunner.xml"> |
| <property |
| name="antrunnerfile" |
| value="${wtp.builder.home}/distribution/wtp.build/createjaxws.xml"/> |
| </ant> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/runAntRunner.xml"> |
| <property |
| name="antrunnerfile" |
| value="${wtp.builder.home}/distribution/wtp.build/createnoopzips.xml"/> |
| </ant> |
| <antcall |
| target="createFprojZips"/> |
| </target> |
| <!-- |
| Handles packaging of individual Faceted Project Framework |
| distributions. |
| --> |
| <target |
| name="createFprojZips" |
| if="doCreateFprojZips"> |
| <delete |
| file="${buildDirectory}/${buildLabel}/wtp-common-fproj-${buildLabel}.zip" |
| failonerror="false"/> |
| <zip |
| destfile="${buildDirectory}/${buildLabel}/wtp-common-fproj-${buildLabel}.zip"> |
| <zipfileset |
| src="${buildDirectory}/${buildLabel}/wtp-sdk-${buildLabel}.zip"> |
| <include |
| name="eclipse/features/org.eclipse.wst.common.fproj_*/**"/> |
| <include |
| name="eclipse/plugins/org.eclipse.wst.common.project.facet.core_*.jar"/> |
| <include |
| name="eclipse/plugins/org.eclipse.wst.common.project.facet.ui_*.jar"/> |
| </zipfileset> |
| </zip> |
| <delete |
| file="${buildDirectory}/${buildLabel}/wtp-common-fproj-sdk-${buildLabel}.zip" |
| failonerror="false"/> |
| <zip |
| destfile="${buildDirectory}/${buildLabel}/wtp-common-fproj-sdk-${buildLabel}.zip"> |
| <zipfileset |
| src="${buildDirectory}/${buildLabel}/wtp-common-fproj-${buildLabel}.zip"/> |
| <zipfileset |
| src="${buildDirectory}/${buildLabel}/wtp-sdk-${buildLabel}.zip"> |
| <include |
| name="eclipse/features/org.eclipse.wst.common.fproj.sdk_*/**"/> |
| <include |
| name="eclipse/plugins/org.eclipse.wst.common.fproj.sdk_*.jar"/> |
| <include |
| name="eclipse/plugins/org.eclipse.wst.common.project.facet.doc.api_*.jar"/> |
| <include |
| name="eclipse/plugins/org.eclipse.wst.common.project.facet.core.source_*.jar"/> |
| <include |
| name="eclipse/plugins/org.eclipse.wst.common.project.facet.ui.source_*.jar"/> |
| </zipfileset> |
| </zip> |
| <delete |
| file="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-${buildLabel}.zip" |
| failonerror="false"/> |
| <zip |
| destfile="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-${buildLabel}.zip"> |
| <zipfileset |
| src="${buildDirectory}/${buildLabel}/wtp-sdk-${buildLabel}.zip"> |
| <include |
| name="eclipse/features/org.eclipse.jst.common.fproj.enablement.jdt_*/**"/> |
| <include |
| name="eclipse/plugins/org.eclipse.jst.common.project.facet.core_*.jar"/> |
| <include |
| name="eclipse/plugins/org.eclipse.jst.common.project.facet.ui_*.jar"/> |
| </zipfileset> |
| </zip> |
| <delete |
| file="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-sdk-${buildLabel}.zip" |
| failonerror="false"/> |
| <zip |
| destfile="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-sdk-${buildLabel}.zip"> |
| <zipfileset |
| src="${buildDirectory}/${buildLabel}/wtp-common-fproj-enablement-jdt-${buildLabel}.zip"/> |
| <zipfileset |
| src="${buildDirectory}/${buildLabel}/wtp-sdk-${buildLabel}.zip"> |
| <include |
| name="eclipse/features/org.eclipse.jst.common.fproj.enablement.jdt.sdk_*/**"/> |
| <include |
| name="eclipse/plugins/org.eclipse.jst.common.fproj.enablement.jdt.sdk_*.jar"/> |
| <include |
| name="eclipse/plugins/org.eclipse.jst.common.project.facet.core.source_*.jar"/> |
| <include |
| name="eclipse/plugins/org.eclipse.jst.common.project.facet.ui.source_*.jar"/> |
| </zipfileset> |
| </zip> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml" |
| target="createChecksums"> |
| <property |
| name="buildDirectory" |
| value="${buildDirectory}"/> |
| <property |
| name="buildLabel" |
| value="${buildLabel}"/> |
| <property |
| name="archiveName" |
| value="wtp-common-fproj-${buildLabel}.zip"/> |
| </ant> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml" |
| target="createChecksums"> |
| <property |
| name="buildDirectory" |
| value="${buildDirectory}"/> |
| <property |
| name="buildLabel" |
| value="${buildLabel}"/> |
| <property |
| name="archiveName" |
| value="wtp-common-fproj-sdk-${buildLabel}.zip"/> |
| </ant> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml" |
| target="createChecksums"> |
| <property |
| name="buildDirectory" |
| value="${buildDirectory}"/> |
| <property |
| name="buildLabel" |
| value="${buildLabel}"/> |
| <property |
| name="archiveName" |
| value="wtp-common-fproj-enablement-jdt-${buildLabel}.zip"/> |
| </ant> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml" |
| target="createChecksums"> |
| <property |
| name="buildDirectory" |
| value="${buildDirectory}"/> |
| <property |
| name="buildLabel" |
| value="${buildLabel}"/> |
| <property |
| name="archiveName" |
| value="wtp-common-fproj-enablement-jdt-sdk-${buildLabel}.zip"/> |
| </ant> |
| </target> |
| </project> |