diff options
author | spingel | 2010-04-25 04:44:35 +0000 |
---|---|---|
committer | spingel | 2010-04-25 04:44:35 +0000 |
commit | a62b8efd70ebf7fc7d23729ccb1d3e2be8246a65 (patch) | |
tree | 5873768d127e5ade123b17d6c1c0223348cb5443 /examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/buildProduct.xml | |
parent | 5bdc08e098e9b466572be4d7b738df14d22acd57 (diff) | |
download | rt.equinox.p2-a62b8efd70ebf7fc7d23729ccb1d3e2be8246a65.tar.gz rt.equinox.p2-a62b8efd70ebf7fc7d23729ccb1d3e2be8246a65.tar.xz rt.equinox.p2-a62b8efd70ebf7fc7d23729ccb1d3e2be8246a65.zip |
bug 309874 - [discovery] provide RCP example for discovery based extension install
Diffstat (limited to 'examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/buildProduct.xml')
-rw-r--r-- | examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/buildProduct.xml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/buildProduct.xml b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/buildProduct.xml new file mode 100644 index 000000000..e8019d41a --- /dev/null +++ b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/buildProduct.xml @@ -0,0 +1,49 @@ +<project default="main"> + <target name="main"> + <property name="baseLocation" value="${eclipse.home}"/> + <!-- by default, check for deltapack co-located with eclipse --> + <property name="deltapack" value="${eclipse.home}/../deltapack/eclipse"/> + + <!-- Check that we have a deltapack --> + <available property="haveDeltaPack" file="${deltapack}"/> + <fail unless="haveDeltaPack" message="The deltapack is required to build this product. Please edit buildProduct.xml or set the "deltapack" property." /> + + <property name="builder" value="${basedir}" /> + <property name="buildDirectory" value="${basedir}/buildDirectory"/> + <property name="pluginPath" value="${deltapack}" /> + <property name="buildTempFolder" value="${buildDirectory}" /> + + <!-- Clean build directory and workspace --> + <delete includeemptydirs="true" failonerror="false"> + <fileset dir="${basedir}/buildDirectory"/> + <fileset dir="${basedir}/repository"/> + </delete> + + <!-- Copy plug-ins from workspace --> + <copy todir="${buildDirectory}/plugins"> + <fileset dir="${basedir}/.."> + <include name="org.eclipse.equinox.p2.examples.rcp.discovery/**/*"/> + <exclude name="**/bin/**"/> + </fileset> + </copy> + + <!-- Fix project name of example plugin --> + <move file="${buildDirectory}/plugins/org.eclipse.equinox.p2.examples.rcp.discovery" tofile="${buildDirectory}/plugins/org.eclipse.equinox.p2.examples.rcp.cloud"/> + + <ant antfile="${eclipse.pdebuild.scripts}/productBuild/productBuild.xml" /> + + <move todir="${basedir}"> + <fileset dir="${buildDirectory}/I.TestBuild" includes="*.zip"/> + </move> + + <replace file="${basedir}/repository/content.xml"> + <replacetoken><![CDATA[<update id='org.eclipse.equinox.p2.examples.rcp.cloud.product' range='0.0.0' severity='0'/>]]></replacetoken> + <replacevalue><![CDATA[<update id='org.eclipse.equinox.p2.examples.rcp.cloud.product' range='0.0.0' severity='0' description='This update contains Mylyn Discovery!' uri='http://localhost/updatenotification.png'/>]]></replacevalue> + </replace> + + <!-- refresh the workspace --> + <eclipse.convertPath fileSystemPath="${basedir}" property="resourcePath"/> + <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> + </target> + +</project>
\ No newline at end of file |