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 | |
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')
6 files changed, 214 insertions, 0 deletions
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/.cvsignore b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/.cvsignore new file mode 100644 index 000000000..23c798ce4 --- /dev/null +++ b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/.cvsignore @@ -0,0 +1,2 @@ +repository +buildDirectory diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/.project b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/.project new file mode 100644 index 000000000..80d1497a6 --- /dev/null +++ b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/.project @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.equinox.p2.examples.rcp.discovery.releng</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + </buildSpec> + <natures> + </natures> +</projectDescription> diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/Build Discovery Example.launch b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/Build Discovery Example.launch new file mode 100644 index 000000000..8442bedd4 --- /dev/null +++ b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/Build Discovery Example.launch @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType"> +<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> +<listEntry value="/org.eclipse.equinox.p2.examples.rcp.discovery.releng/buildProduct.xml"/> +</listAttribute> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> +<listEntry value="1"/> +</listAttribute> +<stringAttribute key="org.eclipse.debug.ui.ATTR_CAPTURE_IN_FILE" value="/tmp/build.log"/> +<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/> +<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.equinox.p2.examples.rcp.discovery.releng"/> +<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/> +<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/org.eclipse.equinox.p2.examples.rcp.discovery.releng/buildProduct.xml}"/> +<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/> +</launchConfiguration> diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/build.properties b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/build.properties new file mode 100644 index 000000000..4be192c46 --- /dev/null +++ b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/build.properties @@ -0,0 +1,120 @@ +############################################################################### +# Copyright (c) 2003, 2006 IBM Corporation and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# IBM Corporation - initial API and implementation +############################################################################### +product=/org.eclipse.equinox.p2.examples.rcp.cloud/cloud.product +runPackager=true + +p2.gathering=true +p2.metadata.repo=file:${builder}/repository +p2.artifact.repo=file:${builder}/repository + +#Set the name of the archive that will result from the product build. +#archiveNamePrefix= + +# The prefix that will be used in the generated archive. +archivePrefix=eclipse + +# The location underwhich all of the build output will be collected. +collectingFolder=${archivePrefix} + +# The list of {os, ws, arch} configurations to build. This +# value is a '&' separated list of ',' separate triples. For example, +# configs=win32,win32,x86 & linux,motif,x86 +# By default the value is *,*,* +configs = win32, win32, x86 & \ + linux, gtk, x86 +#configs=win32, win32, x86 & \ +# linux, gtk, ppc &\ +# linux, gtk, x86 & \ +# linux, gtk, x86_64 & \ +# linux, motif, x86 & \ +# solaris, motif, sparc & \ +# solaris, gtk, sparc & \ +# aix, motif, ppc & \ +# hpux, motif, PA_RISC & \ +# macosx, carbon, ppc + +#Allow cycles involving at most one bundle that needs to be compiled with the rest being binary bundles. +allowBinaryCycles = true + +# Type of build. Used in naming the build output. Typically this value is +# one of I, N, M, S, ... +buildType=I + +# ID of the build. Used in naming the build output. +buildId=TestBuild + +# Label for the build. Used in naming the build output +buildLabel=${buildType}.${buildId} + +# Timestamp for the build. Used in naming the build output +timestamp=007 + +#this property indicates whether the resolution should be done in development mode (i.e. ignore multiple bundles with singletons) +resolution.devMode=false + +skipBase=true +skipMaps=true +skipFetch=true + + +############# JAVA COMPILER OPTIONS ############## +# For this example: +# We specify the JRE locations for CDC-1.1/Foundation-1.1 and J2SE-1.5 +# because these are the required execution environments defined for the +# bundles in the example. + +# The location of the Java jars to compile against. Typically the rt.jar for your JDK/JRE +#bootclasspath=${java.home}/lib/rt.jar + +# If using an IBM VM, use +#bootclasspath=${java.home}/lib/core.jar;${java.home}/lib/vm.jar + +# specific JRE locations to compile against. These values are used to compile bundles specifying a +# Bundle-RequiredExecutionEnvironment. Uncomment and set values for environments that you support +#CDC-1.0/Foundation-1.0= /path/to/rt.jar +CDC-1.1/Foundation-1.1=${java.home}/lib/rt.jar +#OSGi/Minimum-1.0= +#OSGi/Minimum-1.1= +#JRE-1.1= +#J2SE-1.2= +#J2SE-1.3= +#J2SE-1.4= +J2SE-1.5=${java.home}/lib/rt.jar +#JavaSE-1.6= +#PersonalJava-1.1= +#PersonalJava-1.2= +#CDC-1.0/PersonalBasis-1.0= +#CDC-1.0/PersonalJava-1.0= +#CDC-1.1/PersonalBasis-1.1= +#CDC-1.1/PersonalJava-1.1= + +# Specify the output format of the compiler log when eclipse jdt is used +logExtension=.log + +# Whether or not to include debug info in the output jars +javacDebugInfo=false + +# Whether or not to fail the build if there are compiler errors +javacFailOnError=true + +# Enable or disable verbose mode of the compiler +javacVerbose=true + +# Extra arguments for the compiler. These are specific to the java compiler being used. +#compilerArg= + +# Default value for the version of the source code. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in build.properties +#javacSource=1.3 + +# Default value for the version of the byte code targeted. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties. +#javacTarget=1.1 + + 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 diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/readme.txt b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/readme.txt new file mode 100644 index 000000000..eb0d08981 --- /dev/null +++ b/examples/org.eclipse.equinox.p2.examples.rcp.discovery.releng/readme.txt @@ -0,0 +1,16 @@ +This project is a releng builder for the org.eclipse.equinox.p2.examples.rcp.cloud project. + +1) This build requires 3.5M6 or later + +2) This build requires the deltapack. By default it looks beside the eclipse install for "deltapack/eclipse/*". + If your deltapack is located elsewhere, set the "deltapack" property or edit the buildProduct.xml file. The + version of the deltapack used should match the version of the eclipse that is running. + +3) Due to bug 268867, if the buildDirectory/buildRepo is deleted/cleaned, then the repo must also be removed from + the workspace Available Software Sites preferences. + +4) Use the included launch config, or run buildProduct.xml as an ant build using the same JRE as the workspace + +5) The build.properties file specifically defines the JRE's for CDC-1.1/Foundation-1.1 and + J2SE-1.5 because these are the required bundle execution environments in the example. + The build should be run on a 1.5 VM.
\ No newline at end of file |