Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2015-06-24 23:12:57 -0400
committerDavid Williams2015-06-24 23:12:57 -0400
commit8e6293bafc07177ec68d742675eae0b5c386f34b (patch)
treeaa1e86080389008bc4c68549048e643731175c3e
parente449b65dfc2bc82a8131e266024fbfd5f736ddd5 (diff)
downloadeclipse.platform.releng.aggregator-8e6293bafc07177ec68d742675eae0b5c386f34b.tar.gz
eclipse.platform.releng.aggregator-8e6293bafc07177ec68d742675eae0b5c386f34b.tar.xz
eclipse.platform.releng.aggregator-8e6293bafc07177ec68d742675eae0b5c386f34b.zip
Bug 470913 - Improve wiki instructions for multi-platform builds
-rw-r--r--scripts/createdeltapack.xml210
1 files changed, 210 insertions, 0 deletions
diff --git a/scripts/createdeltapack.xml b/scripts/createdeltapack.xml
new file mode 100644
index 00000000..5afa81b4
--- /dev/null
+++ b/scripts/createdeltapack.xml
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ name="delta pack build"
+ default="assembler"
+ basedir=".">
+ <!--
+ This script is a starting point for creating a traditional
+ "delta pack" for anyone who does not what to use p2 directly.
+ -->
+
+
+ <target
+ name="init"
+ unless="buildInitialized">
+ <property
+ name="projectDir"
+ value="${basedir}" />
+ <property
+ name="buildId"
+ value="I201503032000" />
+ <property
+ name="resultsDir"
+ value="${projectDir}/results" />
+ <property
+ name="buildlogs"
+ value="${resultsDir}/buildlogs" />
+ <property
+ name="checksum"
+ value="${resultsDir}/checksum" />
+ <delete
+ verbose="true"
+ dir="${buildlogs}" />
+ <mkdir dir="${buildlogs}" />
+
+ <record
+ name="${buildlogs}/deltaPack-${buildId}-log.txt"
+ action="start" />
+
+ <property
+ name="buildRepo"
+ value="http://download.eclipse.org/eclipse/updates/4.5/" />
+ <property
+ name="projectDir"
+ value="${basedir}" />
+ <property
+ name="buildId"
+ value="I201503032000" />
+ <property
+ name="archivePrefix"
+ value="eclipse" />
+
+ <property
+ name="archiveRoot"
+ value="${archivePrefix}-${buildId}" />
+ <property
+ name="archiveName"
+ value="${archiveRoot}-delta-pack.zip" />
+
+ <property
+ name="featureTempRoot"
+ value="${projectDir}/rcp.deltapack" />
+ <property
+ name="featureTempDir"
+ value="featureTemp" />
+ <property
+ name="featureTemp"
+ value="${featureTempRoot}/${featureTempDir}" />
+ <property
+ name="featureTemp2"
+ value="${featureTempRoot}/featureTemp2" />
+ <delete
+ verbose="true"
+ dir="${featureTemp}" />
+ <mkdir dir="${featureTemp}" />
+ <delete
+ verbose="true"
+ dir="${featureTemp2}" />
+ <mkdir dir="${featureTemp2}" />
+
+ <property
+ name="archivePathAndName"
+ value="${resultsDir}/${archiveName}" />
+
+ <property
+ name="buildInitialized"
+ value="true" />
+
+ </target>
+
+ <target
+ name="build"
+ depends="init">
+ <echo message="DEBUG: echoproperties at beginning of deltapack (after init)" />
+ <echoproperties />
+
+ <!--need to change slicing options to only include platform specific bits -->
+ <p2.mirror
+ source="${buildRepo}"
+ log="${buildlogs}/deltapackmirrorlog.txt"
+ verbose="true"
+ ignoreerrors="true">
+ <destination
+ kind="metadata"
+ location="file://${featureTemp}"
+ name="RCP Delta Pack Repo"
+ format="${buildRepo}" />
+ <destination
+ kind="artifact"
+ location="file://${featureTemp}"
+ name="RCP Delta Pack Repo"
+ format="${buildRepo}" />
+ <iu
+ id="org.eclipse.equinox.executable.feature.group"
+ version="" />
+ <iu
+ id="org.eclipse.rcp.configuration.feature.group"
+ version="" />
+ <iu
+ id="org.eclipse.platform.feature.group"
+ version="" />
+ <iu
+ id="org.eclipse.platform.source.feature.group"
+ version="" />
+ <iu
+ id="org.eclipse.rcp.feature.group"
+ version="" />
+ <iu
+ id="org.eclipse.rcp.source.feature.group"
+ version="" />
+ <iu
+ id="org.eclipse.jdt.feature.group"
+ version="" />
+ <iu
+ id="org.eclipse.jdt.source.feature.group"
+ version="" />
+ <iu
+ id="org.eclipse.e4.rcp.feature.group"
+ version="" />
+ <iu
+ id="org.eclipse.e4.rcp.source.feature.group"
+ version="" />
+ <slicingOptions
+ includeOptional="false"
+ includeNonGreedy="false"
+ followStrict="true"
+ followOnlyFilteredRequirements="true" />
+ </p2.mirror>
+ <p2.remove.iu>
+ <repository location="file://${featureTemp}" />
+ <iu id="org.eclipse.jdt.feature.jar" />
+ <iu id="org.eclipse.jdt.source.feature.jar" />
+ <iu id="org.eclipse.platform.feature.jar" />
+ <iu id="org.eclipse.platform.source.feature.jar" />
+ <iu id="org.eclipse.rcp.feature.jar" />
+ <iu id="org.eclipse.rcp.source.feature.jar" />
+ <iu id="org.eclipse.e4.rcp.feature.jar" />
+ <iu id="org.eclipse.e4.rcp.source.feature.jar" />
+ </p2.remove.iu>
+ <p2.repo2runnable
+ destination="${featureTemp2}/eclipse"
+ failonerror="true">
+ <source
+ dir="${featureTempRoot}"
+ includes="${featureTempDir}" />
+ </p2.repo2runnable>
+ <delete verbose="true">
+ <fileset
+ dir="${featureTemp2}/eclipse"
+ includes="*.jar" />
+ <fileset
+ dir="${featureTemp2}/eclipse"
+ includes="*.xml" />
+ </delete>
+
+ </target>
+
+ <target
+ name="assembler"
+ depends="init, build">
+ <delete
+ verbose="true"
+ file="${archivePathAndName}"
+ failonerror="false" />
+ <exec
+ executable="zip"
+ dir="${featureTemp2}">
+ <arg line="${archivePathAndName} -r ." />
+ </exec>
+
+ <delete
+ verbose="true"
+ dir="${checksum}" />
+ <mkdir dir="${checksum}" />
+ <checksum
+ file="${archivePathAndName}"
+ algorithm="sha256"
+ todir="${checksum}"
+ pattern="{0} *{1}" />
+
+ <!--
+ If desired, this would be a good place to remove ${featureTempRoot}
+ since no longer needed ... but, but might assist with debugging?
+ -->
+
+ <record
+ name="${buildlogs}/deltaPack-${buildId}-log.txt"
+ action="stop" />
+
+ </target>
+</project>

Back to the top