| <?xml version="1.0" encoding="UTF-8"?> |
| <project default="main"> |
| |
| |
| <target name="main"> |
| <property name="timestamp" value="007"/> |
| <!-- |
| <tstamp> |
| <format property="timestamp" pattern="yyyyMMddHHmm" /> |
| </tstamp> |
| --> |
| |
| <!-- run the main build --> |
| <antcall target="buildMasterFeature" /> |
| |
| <!-- create zips containing rootfiles --> |
| <antcall target="buildRootFiles" /> |
| |
| <!-- output is in ${base}/build/I.${timestamp} --> |
| <!-- can choose to do things like signing & packing here --> |
| |
| <!-- metadata --> |
| <antcall target="generateP2Metadata" /> |
| |
| |
| </target> |
| |
| <target name="buildMasterFeature" > |
| <ant antfile="${eclipse.pdebuild.scripts}/build.xml"> |
| <property name="builder" value="${basedir}/buildConfigs/master" /> |
| </ant> |
| </target> |
| |
| <target name="buildRootFiles"> |
| <ant antfile="${eclipse.pdebuild.scripts}/build.xml"> |
| <property name="builder" value="${basedir}/buildConfigs/masterRoot" /> |
| </ant> |
| </target> |
| |
| <target name="generateP2Metadata"> |
| <property name="p2.repo" value="${base}/repo" /> |
| <property name="p2.repo.name" value="Mail Repository" /> |
| |
| <!-- unzip the master archive and make a p2 repo out of it --> |
| <mkdir dir="${p2.repo}" /> |
| <unzip src="${base}/build/I.${timestamp}/master.zip" dest="${p2.repo}"> |
| <!-- remove the "example" prefix that is in the archive --> |
| <globmapper from="example/*" to="*" /> |
| </unzip> |
| |
| <!-- generates metadata in-place on the unziped contents --> |
| <p2.generator |
| source="${p2.repo}" |
| compress="true" |
| append="true" |
| flavor="tooling" |
| metadataRepository="file:${p2.repo}" |
| artifactRepository="file:${p2.repo}" |
| metadataRepositoryName="${p2.repo.name}" |
| artifactRepositoryName="${p2.repo.name}" |
| publishArtifacts="false" |
| p2OS="linux" |
| mode="incremental" /> |
| |
| <!-- use the packager to generate final product metadata --> |
| <replace token="@qualifier@" file="${basedir}/buildConfigs/packager/mail.product" value="${timestamp}" /> |
| <replace token="@buildId@" file="maps/packaging.map" value="${timestamp}" /> |
| |
| <ant antfile="${eclipse.pdebuild.scripts}/package.xml"> |
| <property name="packagingInfo" value="${basedir}/buildConfigs/packager" /> |
| </ant> |
| </target> |
| </project> |