| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| This file was generated by Eclipse EGF |
| --> |
| <project name="project" default="all"> |
| <property environment="env" /> |
| |
| <property name="relengDir" value="${basedir}"/> |
| <tstamp> |
| <format property="myTimestamp" pattern="yyyyMMdd-HHmm"/> |
| </tstamp> |
| |
| <condition property="build.root" value="${env.WORKSPACE}"> |
| <isset property="env.WORKSPACE" /> |
| </condition> |
| <condition property="tools" value="${env.tools}"> |
| <isset property="env.tools" /> |
| </condition> |
| <condition property="result" value="${env.result}"> |
| <isset property="env.result" /> |
| </condition> |
| <condition property="publish" value="${env.publish}"> |
| <isset property="env.publish" /> |
| </condition> |
| <condition property="workspace" value="${env.ECLIPSE_WORKSPACE}"> |
| <isset property="env.ECLIPSE_WORKSPACE" /> |
| </condition> |
| <condition property="timestamp" value="${env.BUILD_ID}"> |
| <isset property="env.BUILD_ID" /> |
| </condition> |
| <condition property="releaseName" value="${env.releaseName}"> |
| <isset property="env.releaseName" /> |
| </condition> |
| <condition property="updateSiteURL" value="${env.updateSiteURL}"> |
| <isset property="env.updateSiteURL" /> |
| </condition> |
| <condition property="ecoretoolsSiteURL" value="${env.ecoretoolsSiteURL}"> |
| <isset property="env.ecoretoolsSiteURL" /> |
| </condition> |
| <condition property="siriusSiteURL" value="${env.siriusSiteURL}"> |
| <isset property="env.siriusSiteURL" /> |
| </condition> |
| <condition property="eclipse.download.prefix" value="${env.eclipse.download.prefix}"> |
| <isset property="env.eclipse.download.prefix" /> |
| </condition> |
| <condition property="eclipse.staging.area" value="${env.eclipse.staging.area}"> |
| <isset property="env.eclipse.staging.area" /> |
| </condition> |
| <condition property="git.branch" value="${env.git.branch}"> |
| <isset property="env.git.branch" /> |
| </condition> |
| |
| <property file="build.properties" /> |
| |
| <!-- This macro executes the default application of an eclipse installation that resides |
| in the folder ${buildtools}/@app |
| --> |
| <macrodef name="eclipse.launch"> |
| <attribute name="app" /> |
| <attribute name="workspace" default="${workspace}" /> |
| <element name="args" optional="true" /> |
| <sequential> |
| <!-- We assume that the eclipse installation is beneath ${tools} --> |
| <property name="@{app}.deploy.dir" value="${tools}/@{app}" /> |
| |
| <!-- Find the Eclipse launcher and assing its location to the @{app}.launcher property --> |
| <pathconvert property="@{app}.launcher"> |
| <first count="1"> |
| <sort> |
| <fileset dir="${@{app}.deploy.dir}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar" /> |
| <reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators"> |
| <date /> |
| </reverse> |
| </sort> |
| </first> |
| </pathconvert> |
| |
| <!-- Copy Eclipse Variables preferences --> |
| <copy file="${relengDir}/templates/org.eclipse.core.variables.prefs" |
| toFile="@{workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs"/> |
| |
| <!-- Launch the eclipse application --> |
| <java fork="true" jar="${@{app}.launcher}" dir="${@{app}.deploy.dir}" failonerror="true"> |
| <jvmarg value="-Xmx1024m"/> |
| <jvmarg value="-XX:MaxPermSize=256m"/> |
| |
| <jvmarg value="-Dhttp.proxyHost=proxy.eclipse.org"/> |
| <jvmarg value="-Dhttp.proxyPort=9898"/> |
| <jvmarg value="-Dhttps.proxyHost=proxy.eclipse.org"/> |
| <jvmarg value="-Dhttps.proxyPort=9898"/> |
| <jvmarg value="-Dhttp.nonProxyHosts=*.eclipse.org"/> |
| <jvmarg value="-Dhttps.nonProxyHosts=*.eclipse.org"/> |
| <jvmarg value="-Dftp.proxyHost=proxy.eclipse.org"/> |
| <jvmarg value="-Dftp.proxyPort=9898"/> |
| <jvmarg value="-Dftp.nonProxyHosts=*.eclipse.org"/> |
| |
| |
| <jvmarg value="-DrelengDir=relengDir"/> |
| <jvmarg value="-Dbuild.root=${build.root}"/> |
| <jvmarg value="-Dtools=${tools}"/> |
| <jvmarg value="-Dresult=${result}"/> |
| <jvmarg value="-Dpublish=${publish}"/> |
| <jvmarg value="-Dworkspace=${workspace}"/> |
| <jvmarg value="-Dtimestamp=${timestamp}"/> |
| <jvmarg value="-DreleaseName=${releaseName}"/> |
| <jvmarg value="-DupdateSiteURL=${updateSiteURL}"/> |
| <jvmarg value="-DecoretoolsSiteURL=${ecoretoolsSiteURL}"/> |
| <jvmarg value="-DsiriusSiteURL=${siriusSiteURL}"/> |
| <jvmarg value="-Declipse.download.prefix=${eclipse.download.prefix}"/> |
| <jvmarg value="-Declipse.staging.area=${eclipse.staging.area}"/> |
| <jvmarg value="-Dgit.branch=${git.branch}"/> |
| <arg value="-data" /> |
| <arg value="@{workspace}" /> |
| <args /> |
| </java> |
| </sequential> |
| </macrodef> |
| <target name="install.director"> |
| <available file="${tools}/director/director" property="director.exists" /> |
| <antcall target="do.install.director" /> |
| </target> |
| |
| <target name="do.install.director" unless="director.exists"> |
| <echo message="Fetching headless director application" /> |
| <tempfile destdir="${java.io.tmpdir}" prefix="director-" suffix=".zip" property="director.zip" deleteonexit="true" /> |
| <get src="${director.url}" dest="${director.zip}" /> |
| <mkdir dir="${tools}" /> |
| <unzip src="${director.zip}" dest="${tools}" /> |
| <delete file="${director.zip}" /> |
| |
| <echo message="install eclipse proxy"/> |
| <mkdir dir="${tools}/director/configuration/.settings/"/> |
| <echo file="${tools}/director/configuration/.settings/org.eclipse.core.net.prefs">#Fri May 17 19:15:07 CEST 2013 |
| systemProxiesEnabled=false |
| org.eclipse.core.net.hasMigrated=true |
| proxyData/HTTPS/port=9898 |
| proxyData/HTTP/host=proxy.eclipse.org |
| nonProxiedHosts=172.30.206.*|localhost|127.0.0.1 |
| proxyData/HTTP/hasAuth=false |
| proxyData/HTTP/port=9898 |
| eclipse.preferences.version=1 |
| proxyData/HTTPS/hasAuth=false |
| proxyData/HTTPS/host=proxy.eclipse.org |
| |
| </echo> |
| </target> <target name="install.buckminster"> |
| <available file="${tools}/buckminster/buckminster" property="buckminster.exists" /> |
| <antcall target="do.install.buckminster" /> |
| </target> |
| |
| <target name="do.install.buckminster" unless="buckminster.exists" depends="install.director"> |
| <echo message="Configuring headless buckminster with needed features" /> |
| <echo message="Headless site: ${bm.headless.site}" /> |
| <echo message="External site: ${bm.external.site}" /> |
| <eclipse.launch app="director"> |
| <args> |
| <jvmarg value="-Declipse.p2.mirrors=false" /> |
| <arg value="-r" /> |
| <arg value="${bm.headless.site}" /> |
| <arg value="-d" /> |
| <arg value="${tools}/buckminster" /> |
| <arg value="-p" /> |
| <arg value="Buckminster" /> |
| <arg value="-i" /> |
| <arg value="org.eclipse.buckminster.cmdline.product" /> |
| <arg value="-i" /> |
| <arg value="org.eclipse.buckminster.core.headless.feature.feature.group" /> |
| <arg value="-i" /> |
| <arg value="org.eclipse.buckminster.pde.headless.feature.feature.group" /> |
| </args> |
| </eclipse.launch> |
| </target> |
| |
| <target name="install.egf"> |
| <available file="${tools}/egf/eclipse.ini" property="egf.exists" /> |
| <antcall target="do.install.egf" /> |
| </target> |
| |
| <target name="do.install.egf" unless="egf.exists" depends="install.director"> |
| <echo message="Configuring EGF with needed features" /> |
| <echo message="EGF site: ${egf.site}" /> |
| <echo message="EGF eclipse site: ${egf.eclipse.site}" /> |
| <eclipse.launch app="director"> |
| <args> |
| <jvmarg value="-Declipse.p2.mirrors=false" /> |
| <arg value="-r" /> |
| <arg value="${egf.site}" /> |
| <arg value="-r" /> |
| <arg value="${egf.eclipse.site}" /> |
| <arg value="-d" /> |
| <arg value="${tools}/egf" /> |
| <arg value="-p" /> |
| <arg value="EGF" /> |
| <arg value="-i" /> |
| <arg value="org.eclipse.platform.ide" /> |
| <arg value="-i" /> |
| <arg value="org.eclipse.egf.feature.group" /> |
| <arg value="-i" /> |
| <arg value="org.eclipse.egf.portfolio.feature.group" /> |
| <arg value="-i" /> |
| <arg value="org.eclipse.egf.portfolio.emf.feature.group" /> |
| <arg value="-i" /> |
| <arg value="org.eclipse.egf.portfolio.genchain.feature.group" /> |
| </args> |
| </eclipse.launch> |
| </target> |
| <macrodef name="buckminster"> |
| <attribute name="command" /> |
| <element name="globargs" optional="true" /> |
| <element name="cmdargs" optional="true" /> |
| <sequential> |
| <eclipse.launch app="buckminster"> |
| <args> |
| <jvmarg value="-Dbugfix.288796=true"/> |
| <arg value="--loglevel" /> |
| <arg value="${buckminster.loglevel}" /> |
| <arg value="--displaystacktrace" /> |
| <globargs /> |
| <arg value="@{command}" /> |
| <arg value="-P" /> |
| <arg value="${properties.tmp}" /> |
| <cmdargs /> |
| </args> |
| </eclipse.launch> |
| </sequential> |
| </macrodef> |
| <macrodef name="egf"> |
| <element name="activities" /> |
| <element name="globargs" optional="true" /> |
| <element name="cmdargs" optional="true" /> |
| <sequential> |
| <eclipse.launch app="egf"> |
| <args> |
| <arg value="-application" /> |
| <arg value="org.eclipse.egf.application.activity" /> |
| <arg value="-consoleLog" /> |
| <globargs /> |
| <arg value="-activities" /> |
| <activities /> |
| <cmdargs /> |
| </args> |
| </eclipse.launch> |
| </sequential> |
| </macrodef> |
| <macrodef name="anteclipse"> |
| <attribute name="buildfile" default="${relengDir}/build.xml" /> |
| <attribute name="target" /> |
| <element name="globargs" optional="true" /> |
| <sequential> |
| <eclipse.launch app="egf"> |
| <args> |
| <arg value="-application" /> |
| <arg value="org.eclipse.ant.core.antRunner" /> |
| <arg value="-consoleLog" /> |
| <globargs /> |
| <arg value="-buildfile" /> |
| <arg value="@{buildfile}" /> |
| <arg value="@{target}" /> |
| </args> |
| </eclipse.launch> |
| </sequential> |
| </macrodef> |
| <target name="clean.result"> |
| <delete dir="${result}" failonerror="true" quiet="true" /> |
| </target> |
| |
| <target name="clean.workspace"> |
| <delete dir="${workspace}" failonerror="true" quiet="true" /> |
| </target> |
| |
| <target name="clean.tools"> |
| <delete dir="${tools}" failonerror="true" quiet="true" /> |
| </target> |
| |
| <target name="clean.all"> |
| <antcall target="clean.workspace" /> |
| <antcall target="clean.result" /> |
| <antcall target="clean.tools" /> |
| </target> |
| <target name="init" depends="init.build.properties" > |
| <echo message="Available variables are : "/> |
| <echo message="Builtin $${relengDir} : ${relengDir}" /> |
| <echo message="Builtin $${build.root} : ${build.root}" /> |
| <echo message="Builtin $${tools} : ${tools}" /> |
| <echo message="Builtin $${result} : ${result}" /> |
| <echo message="Builtin $${publish} : ${publish}" /> |
| <echo message="Builtin $${workspace} : ${workspace}" /> |
| <echo message="Builtin $${timestamp} : ${timestamp}" /> |
| <echo message="Provided $${releaseName} : ${releaseName}" /> |
| <echo message="Provided $${updateSiteURL} : ${updateSiteURL}" /> |
| <echo message="Provided $${ecoretoolsSiteURL} : ${ecoretoolsSiteURL}" /> |
| <echo message="Provided $${siriusSiteURL} : ${siriusSiteURL}" /> |
| <echo message="Provided $${eclipse.download.prefix} : ${eclipse.download.prefix}" /> |
| <echo message="Provided $${eclipse.staging.area} : ${eclipse.staging.area}" /> |
| <echo message="Provided $${git.branch} : ${git.branch}" /> |
| </target> |
| |
| <target name="init.build.properties"> |
| <!-- Echo relevant properties to a temporary file so that Buckminster can read them --> |
| <tempfile destdir="${java.io.tmpdir}" prefix="build-" suffix=".properties" deleteonexit="true" property="properties.tmp" /> |
| <echoproperties destfile="${properties.tmp}"> |
| <!-- We don't want these. basedir in particular will cause problems if passed explicitly --> |
| <propertyset negate="true"> |
| <propertyref name="basedir" /> |
| <propertyref name="eclipse.home" /> |
| <propertyref name="properties.tmp" /> |
| <propertyref name="line.separator" /> |
| <propertyref name="path.separator" /> |
| <propertyref prefix="ant." /> |
| <propertyref prefix="file." /> |
| <propertyref prefix="java." /> |
| <propertyref prefix="sun." /> |
| <propertyref prefix="user." /> |
| </propertyset> |
| </echoproperties> |
| </target> |
| |
| <target name="all" depends="CleanStep_1,CleanStep_2,BuildStep_3,PublishStep_4,PublishStep_5,InstallStep_6,InstallStep_7,AntStep_8,CleanStep_9,BuildStep_10,AntStep_11,BuildStep_12,TestStep_13,TestStep_14,EgfStep_15,PublishStep_16,EgfStep_17,PublishStep_18,EgfStep_19,PublishStep_20,PublishStep_21,AggregateStep_22,AntStep_23,JavadocStep_24" /> |
| <target name="CleanStep_1" > |
| <antcall target="clean.result" /> |
| </target> |
| <target name="CleanStep_2" > |
| <antcall target="clean.workspace" /> |
| </target> |
| <target name="CleanStep_9" > |
| <antcall target="clean.result" /> |
| </target> |
| <target name="BuildStep_3" depends="init,install.buckminster"> |
| <echo message="Importing projects into workspace ${workspace} and binaries into target platform" /> |
| |
| <echo message="install JRE ${env.JAVA_HOME}" /> |
| <buckminster command="installJRE"> |
| <cmdargs> |
| <arg value="--location" /> |
| <arg value="${env.JAVA_HOME}" /> |
| </cmdargs> |
| </buckminster> |
| |
| |
| <echo message="import target platform" /> |
| <buckminster command="importtargetdefinition"> |
| <cmdargs> |
| <arg value="--active" /> |
| <arg value="${relengDir}/buckminster_BuildStep_3/build.target" /> |
| </cmdargs> |
| </buckminster> |
| <echo message="provision : import projects in workspace" /> |
| <buckminster command="import"> |
| <!-- Uncomment to debug <globargs><jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/></globargs> --> |
| <cmdargs> |
| <arg value="${relengDir}/buckminster_BuildStep_3/build.mspec" /> |
| </cmdargs> |
| </buckminster> |
| |
| |
| <echo message="Invoking all eclipse builders on workspace ${workspace}" /> |
| <buckminster command="build" > |
| <cmdargs> |
| <arg value="--clean" /> |
| <arg value="--thorough" /> |
| </cmdargs> |
| </buckminster> |
| </target> |
| |
| <target name="BuildStep_10" depends="init,install.buckminster"> |
| <echo message="Importing projects into workspace ${workspace} and binaries into target platform" /> |
| |
| <echo message="install JRE ${env.JAVA_HOME}" /> |
| <buckminster command="installJRE"> |
| <cmdargs> |
| <arg value="--location" /> |
| <arg value="${env.JAVA_HOME}" /> |
| </cmdargs> |
| </buckminster> |
| |
| |
| <echo message="import target platform" /> |
| <buckminster command="importtargetdefinition"> |
| <cmdargs> |
| <arg value="--active" /> |
| <arg value="${relengDir}/buckminster_BuildStep_10/build.target" /> |
| </cmdargs> |
| </buckminster> |
| <echo message="provision : import projects in workspace" /> |
| <buckminster command="import"> |
| <!-- Uncomment to debug <globargs><jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/></globargs> --> |
| <cmdargs> |
| <arg value="${relengDir}/buckminster_BuildStep_10/build.mspec" /> |
| </cmdargs> |
| </buckminster> |
| |
| |
| <echo message="No builders invocation specified" /> |
| </target> |
| |
| <target name="BuildStep_12" depends="init,install.buckminster"> |
| <echo message="Importing projects into workspace ${workspace} and binaries into target platform" /> |
| |
| <echo message="install JRE ${env.JAVA_HOME}" /> |
| <buckminster command="installJRE"> |
| <cmdargs> |
| <arg value="--location" /> |
| <arg value="${env.JAVA_HOME}" /> |
| </cmdargs> |
| </buckminster> |
| |
| |
| <echo message="import target platform" /> |
| <buckminster command="importtargetdefinition"> |
| <cmdargs> |
| <arg value="--active" /> |
| <arg value="${relengDir}/buckminster_BuildStep_12/build.target" /> |
| </cmdargs> |
| </buckminster> |
| <echo message="provision : import projects in workspace" /> |
| <buckminster command="import"> |
| <!-- Uncomment to debug <globargs><jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/></globargs> --> |
| <cmdargs> |
| <arg value="${relengDir}/buckminster_BuildStep_12/build.mspec" /> |
| </cmdargs> |
| </buckminster> |
| |
| |
| <echo message="Invoking all eclipse builders on workspace ${workspace}" /> |
| <buckminster command="build" > |
| <cmdargs> |
| <arg value="--clean" /> |
| <arg value="--thorough" /> |
| </cmdargs> |
| </buckminster> |
| </target> |
| |
| <target name="PublishStep_4" depends="init,install.buckminster" > |
| |
| |
| <echo message="Generate Site"/> |
| <buckminster command="perform"> |
| <globargs> |
| <arg value="-Dsite.include.top=true"/> |
| <arg value="-Dsite.signing=false"/> |
| <arg value="-Dcbi.include.source=true"/> |
| </globargs> |
| <cmdargs> |
| <arg value="org.eclipse.egf.releng:eclipse.feature#site.p2" /> |
| </cmdargs> |
| </buckminster> |
| |
| <echo message="Publish site"/> |
| <mkdir dir="${publish}/org.eclipse.egf.releng/site.p2/"/> |
| <copy todir="${publish}/org.eclipse.egf.releng/site.p2/"> |
| <fileset dir="${result}/output"> |
| <include name="org.eclipse.egf.releng*/site.p2/*"/> |
| <include name="org.eclipse.egf.releng*/site.p2/**"/> |
| </fileset> |
| <filtermapper> |
| <replaceregex pattern=".*site\.p2" replace="" /> |
| </filtermapper> |
| </copy> |
| |
| </target> |
| |
| <target name="PublishStep_5" depends="init,install.buckminster" > |
| |
| |
| <echo message="Generate Site"/> |
| <buckminster command="perform"> |
| <globargs> |
| <arg value="-Dsite.include.top=true"/> |
| <arg value="-Dsite.signing=false"/> |
| <arg value="-Dcbi.include.source=true"/> |
| </globargs> |
| <cmdargs> |
| <arg value="org.eclipse.egf:eclipse.feature#site.p2" /> |
| </cmdargs> |
| </buckminster> |
| |
| <echo message="Publish site"/> |
| <mkdir dir="${publish}/org.eclipse.egf/site.p2/"/> |
| <copy todir="${publish}/org.eclipse.egf/site.p2/"> |
| <fileset dir="${result}/output"> |
| <include name="org.eclipse.egf*/site.p2/*"/> |
| <include name="org.eclipse.egf*/site.p2/**"/> |
| </fileset> |
| <filtermapper> |
| <replaceregex pattern=".*site\.p2" replace="" /> |
| </filtermapper> |
| </copy> |
| |
| </target> |
| |
| <target name="PublishStep_16" depends="init,install.buckminster" > |
| |
| |
| <echo message="Generate Site"/> |
| <buckminster command="perform"> |
| <globargs> |
| <arg value="-Dsite.include.top=true"/> |
| <arg value="-Dsite.signing=true"/> |
| <arg value="-Dcbi.include.source=true"/> |
| </globargs> |
| <cmdargs> |
| <arg value="org.eclipse.egf.sdk:eclipse.feature#site.p2" /> |
| </cmdargs> |
| </buckminster> |
| |
| <echo message="Publish site"/> |
| <mkdir dir="${publish}/org.eclipse.egf.sdk/site.p2/"/> |
| <copy todir="${publish}/org.eclipse.egf.sdk/site.p2/"> |
| <fileset dir="${result}/output"> |
| <include name="org.eclipse.egf.sdk*/site.p2/*"/> |
| <include name="org.eclipse.egf.sdk*/site.p2/**"/> |
| </fileset> |
| <filtermapper> |
| <replaceregex pattern=".*site\.p2" replace="" /> |
| </filtermapper> |
| </copy> |
| |
| </target> |
| |
| <target name="PublishStep_18" depends="init,install.buckminster" > |
| |
| |
| <echo message="Generate Site"/> |
| <buckminster command="perform"> |
| <globargs> |
| <arg value="-Dsite.include.top=true"/> |
| <arg value="-Dsite.signing=true"/> |
| <arg value="-Dcbi.include.source=true"/> |
| </globargs> |
| <cmdargs> |
| <arg value="org.eclipse.egf.portfolio.acceleo3:eclipse.feature#site.p2" /> |
| </cmdargs> |
| </buckminster> |
| |
| <echo message="Publish site"/> |
| <mkdir dir="${publish}/org.eclipse.egf.portfolio.acceleo3/site.p2/"/> |
| <copy todir="${publish}/org.eclipse.egf.portfolio.acceleo3/site.p2/"> |
| <fileset dir="${result}/output"> |
| <include name="org.eclipse.egf.portfolio.acceleo3*/site.p2/*"/> |
| <include name="org.eclipse.egf.portfolio.acceleo3*/site.p2/**"/> |
| </fileset> |
| <filtermapper> |
| <replaceregex pattern=".*site\.p2" replace="" /> |
| </filtermapper> |
| </copy> |
| |
| </target> |
| |
| <target name="PublishStep_20" depends="init,install.buckminster" > |
| |
| |
| <echo message="Generate Site"/> |
| <buckminster command="perform"> |
| <globargs> |
| <arg value="-Dsite.include.top=true"/> |
| <arg value="-Dsite.signing=true"/> |
| <arg value="-Dcbi.include.source=true"/> |
| </globargs> |
| <cmdargs> |
| <arg value="org.eclipse.egf.portfolio.atl:eclipse.feature#site.p2" /> |
| </cmdargs> |
| </buckminster> |
| |
| <echo message="Publish site"/> |
| <mkdir dir="${publish}/org.eclipse.egf.portfolio.atl/site.p2/"/> |
| <copy todir="${publish}/org.eclipse.egf.portfolio.atl/site.p2/"> |
| <fileset dir="${result}/output"> |
| <include name="org.eclipse.egf.portfolio.atl*/site.p2/*"/> |
| <include name="org.eclipse.egf.portfolio.atl*/site.p2/**"/> |
| </fileset> |
| <filtermapper> |
| <replaceregex pattern=".*site\.p2" replace="" /> |
| </filtermapper> |
| </copy> |
| |
| </target> |
| |
| <target name="PublishStep_21" depends="init,install.buckminster" > |
| |
| |
| <echo message="Generate Site"/> |
| <buckminster command="perform"> |
| <globargs> |
| <arg value="-Dsite.include.top=true"/> |
| <arg value="-Dsite.signing=true"/> |
| <arg value="-Dcbi.include.source=true"/> |
| </globargs> |
| <cmdargs> |
| <arg value="org.eclipse.egf.portfolio.genchain.ecoretools:eclipse.feature#site.p2" /> |
| </cmdargs> |
| </buckminster> |
| |
| <echo message="Publish site"/> |
| <mkdir dir="${publish}/org.eclipse.egf.portfolio.genchain.ecoretools/site.p2/"/> |
| <copy todir="${publish}/org.eclipse.egf.portfolio.genchain.ecoretools/site.p2/"> |
| <fileset dir="${result}/output"> |
| <include name="org.eclipse.egf.portfolio.genchain.ecoretools*/site.p2/*"/> |
| <include name="org.eclipse.egf.portfolio.genchain.ecoretools*/site.p2/**"/> |
| </fileset> |
| <filtermapper> |
| <replaceregex pattern=".*site\.p2" replace="" /> |
| </filtermapper> |
| </copy> |
| |
| </target> |
| |
| <target name="TestStep_13" depends="init,install.buckminster"> |
| <echo message="Running Junit tests " /> |
| <buckminster command="junit"> |
| <cmdargs> |
| <arg value="-l" /> |
| <arg value="org.eclipse.egf.core.test/EGF_Core_Tests.launch" /> |
| <arg value="-o" /> |
| <arg value="${result}/testReportTestStep_13.xml" /> |
| <arg value="--terseXML" /> |
| <arg value="--flatXML"/> |
| </cmdargs> |
| </buckminster> |
| </target> |
| |
| <target name="TestStep_14" depends="init,install.buckminster"> |
| <echo message="Running Junit tests " /> |
| <buckminster command="junit"> |
| <cmdargs> |
| <arg value="-l" /> |
| <arg value="org.eclipse.egf.portfolio.task.ant.test/Ant_Tests.launch" /> |
| <arg value="-o" /> |
| <arg value="${result}/testReportTestStep_14.xml" /> |
| <arg value="--terseXML" /> |
| <arg value="--flatXML"/> |
| </cmdargs> |
| </buckminster> |
| </target> |
| |
| |
| <target name="AntStep_8"> |
| <antcall target="copy_egf_to_tools"/> |
| </target> |
| |
| <target name="copy_egf_to_tools"> |
| <delete dir="${tools}/egf"/> |
| <copy todir="${tools}/egf"> |
| <fileset dir="${publish}/egf"/> |
| </copy> |
| </target> |
| |
| <target name="AntStep_11" depends="init,install.egf" > |
| <anteclipse target="recompile_egf_patterns" /> |
| </target> |
| |
| <target name="recompile_egf_patterns"> |
| <eclipse.incrementalBuild kind="incremental" builder="org.eclipse.pde.SchemaBuilder" /> |
| <eclipse.incrementalBuild kind="incremental" builder="org.eclipse.pde.ManifestBuilder" /> |
| <eclipse.incrementalBuild kind="incremental" builder="org.eclipse.jdt.core.javabuilder" /> |
| <eclipse.incrementalBuild kind="incremental" builder="org.eclipse.egf.pattern.ui.PatternBuilder" /> |
| </target> |
| |
| |
| <target name="AntStep_23"> |
| <antcall target="stats"/> |
| </target> |
| |
| <target name="stats"> |
| <property name="p2.site.path" value="${publish}/org.eclipse.egf.site/site.p2" /> |
| |
| <unzip src="${p2.site.path}/artifacts.jar" dest="${p2.site.path}" /> |
| <delete file="${p2.site.path}/artifacts.jar" /> |
| <move file="${p2.site.path}/artifacts.xml" tofile="${p2.site.path}/artifacts.xml.orig" /> |
| |
| <xslt style="${build.root}/git/git_eclipse/releng/org.eclipse.egf.releng2/ant/statsURI.xsl" |
| in="${p2.site.path}/artifacts.xml.orig" |
| out="${p2.site.path}/artifacts.xml"> |
| <param name="releaseName" expression="${releaseName}"/> |
| </xslt> |
| |
| <zip destfile="${p2.site.path}/artifacts.jar" basedir="${p2.site.path}" includes="artifacts.xml" /> |
| <delete file="${p2.site.path}/artifacts.xml" /> |
| <delete file="${p2.site.path}/artifacts.xml.orig" /> |
| </target> |
| |
| <target name="JavadocStep_24"> |
| <delete dir="${build.root}/../javadoc" /> |
| <javadoc |
| destdir="${build.root}/../javadoc" |
| maxmemory="1024m" |
| source="1.5" |
| useexternalfile="true" |
| author="true" |
| version="true" |
| use="true" |
| windowtitle="Javadoc"> |
| |
| <link offline="false" href="http://download.oracle.com/javase/1.5.0/docs/api/"/> |
| <link offline="false" href="http://www.osgi.org/javadoc/r4v42/"/> |
| <link offline="false" href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.5.0/"/> |
| <link offline="false" href="http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/"/> |
| |
| <!-- TODO better handling of dir parameter --> |
| <!-- TODO better handling of SourceBuildLocation model extension --> |
| |
| |
| <fileset dir="${build.root}/git/git_eclipse/plugins" defaultexcludes="true"> |
| |
| <include name="**/*.java"/> |
| </fileset> |
| |
| <!-- TODO better handling of copyright (escape chars) --> |
| <!-- <bottom>copyright</bottom> --> |
| </javadoc> |
| </target> |
| |
| <target name="EgfStep_15" depends="init,install.egf"> |
| <egf> |
| <globargs> |
| <jvmarg value="-Degf.target.bundle.priority=true" /> |
| <jvmarg value="-DfeatureName=org.eclipse.egf.examples-feature" /> |
| <jvmarg value="-DoutputFolder=${publish}/org.eclipse.egf.sdk/examples" /> |
| <jvmarg value="-DimporterName=org.eclipse.egf.examples.installer" /> |
| </globargs> |
| <activities> |
| <arg value="platform:/plugin/org.eclipse.egf.releng2/egf/PublishExamples.fcore#_P2rGsKboEd-ZgeUI-BonwQ"/> |
| </activities> |
| </egf> |
| </target> |
| <target name="EgfStep_17" depends="init,install.egf"> |
| <egf> |
| <globargs> |
| <jvmarg value="-Degf.target.bundle.priority=true" /> |
| <jvmarg value="-DfeatureName=org.eclipse.egf.portfolio.acceleo3.examples-feature" /> |
| <jvmarg value="-DoutputFolder=${publish}/org.eclipse.egf.portfolio.acceleo3/examples" /> |
| <jvmarg value="-DimporterName=org.eclipse.egf.portfolio.acceleo3.examples.installer" /> |
| </globargs> |
| <activities> |
| <arg value="platform:/plugin/org.eclipse.egf.releng2/egf/PublishExamples.fcore#_P2rGsKboEd-ZgeUI-BonwQ"/> |
| </activities> |
| </egf> |
| </target> |
| <target name="EgfStep_19" depends="init,install.egf"> |
| <egf> |
| <globargs> |
| <jvmarg value="-Degf.target.bundle.priority=true" /> |
| <jvmarg value="-DfeatureName=org.eclipse.egf.portfolio.atl.examples-feature" /> |
| <jvmarg value="-DoutputFolder=${publish}/org.eclipse.egf.portfolio.atl/examples" /> |
| <jvmarg value="-DimporterName=org.eclipse.egf.portfolio.atl.examples.installer" /> |
| </globargs> |
| <activities> |
| <arg value="platform:/plugin/org.eclipse.egf.releng2/egf/PublishExamples.fcore#_P2rGsKboEd-ZgeUI-BonwQ"/> |
| </activities> |
| </egf> |
| </target> |
| <target name="AggregateStep_22" depends="init,install.egf" > |
| <anteclipse target="AggregateStep_22_dropins" /> |
| <anteclipse target="AggregateStep_22_sitep2" /> |
| </target> |
| |
| <target name="AggregateStep_22_dropins"> |
| </target> |
| |
| <target name="AggregateStep_22_sitep2"> |
| <!-- see http://wiki.eclipse.org/Equinox/p2/Ant_Tasks --> |
| <p2.mirror> |
| <repository location="file:/${publish}/org.eclipse.egf.site/site.p2" name="buckminster-egf-neon/org.eclipse.egf.site" /> |
| <source> |
| <repository location="file:/${publish}/org.eclipse.egf.sdk/site.p2" /> |
| <repository location="file:/${publish}/org.eclipse.egf.portfolio.acceleo3/site.p2" /> |
| <repository location="file:/${publish}/org.eclipse.egf.portfolio.atl/site.p2" /> |
| <repository location="file:/${publish}/org.eclipse.egf.portfolio.genchain.ecoretools/site.p2" /> |
| </source> |
| </p2.mirror> |
| </target> |
| <target name="InstallStep_6" depends="init,install.director" > |
| <eclipse.launch app="director"> |
| <args> |
| <jvmarg value="-Declipse.p2.mirrors=false" /> |
| <jvmarg value="-Xmx1024m"/> |
| <jvmarg value="-XX:MaxPermSize=256m"/> |
| |
| <jvmarg value="-Dhttp.proxyHost=proxy.eclipse.org"/> |
| <jvmarg value="-Dhttp.proxyPort=9898"/> |
| <jvmarg value="-Dhttps.proxyHost=proxy.eclipse.org"/> |
| <jvmarg value="-Dhttps.proxyPort=9898"/> |
| <jvmarg value="-Dhttp.nonProxyHosts=*.eclipse.org"/> |
| <jvmarg value="-Dhttps.nonProxyHosts=*.eclipse.org"/> |
| <jvmarg value="-Dftp.proxyHost=proxy.eclipse.org"/> |
| <jvmarg value="-Dftp.proxyPort=9898"/> |
| <jvmarg value="-Dftp.nonProxyHosts=*.eclipse.org"/> |
| |
| |
| |
| <arg value="-roaming" /> |
| <arg value="-profileProperties" /> |
| <arg value="org.eclipse.update.install.features=true " /> |
| |
| <arg value="-d" /> |
| <arg value="${publish}/egf" /> |
| |
| <arg value="-p" /> |
| <arg value="EGF" /> |
| |
| <arg value="-r" /> |
| <arg value="${updateSiteURL}" /> |
| |
| |
| |
| <arg value="-i" /> |
| <arg value="org.eclipse.platform.ide" /> |
| |
| |
| </args> |
| </eclipse.launch> |
| </target> |
| <target name="InstallStep_7" depends="init,install.director" > |
| <eclipse.launch app="director"> |
| <args> |
| <jvmarg value="-Declipse.p2.mirrors=false" /> |
| <jvmarg value="-Xmx1024m"/> |
| <jvmarg value="-XX:MaxPermSize=256m"/> |
| |
| <jvmarg value="-Dhttp.proxyHost=proxy.eclipse.org"/> |
| <jvmarg value="-Dhttp.proxyPort=9898"/> |
| <jvmarg value="-Dhttps.proxyHost=proxy.eclipse.org"/> |
| <jvmarg value="-Dhttps.proxyPort=9898"/> |
| <jvmarg value="-Dhttp.nonProxyHosts=*.eclipse.org"/> |
| <jvmarg value="-Dhttps.nonProxyHosts=*.eclipse.org"/> |
| <jvmarg value="-Dftp.proxyHost=proxy.eclipse.org"/> |
| <jvmarg value="-Dftp.proxyPort=9898"/> |
| <jvmarg value="-Dftp.nonProxyHosts=*.eclipse.org"/> |
| |
| |
| |
| <arg value="-roaming" /> |
| <arg value="-profileProperties" /> |
| <arg value="org.eclipse.update.install.features=true " /> |
| |
| <arg value="-d" /> |
| <arg value="${publish}/egf" /> |
| |
| <arg value="-p" /> |
| <arg value="EGF" /> |
| |
| <arg value="-r" /> |
| <arg value="${updateSiteURL}" /> |
| |
| <arg value="-r" /> |
| <arg value="file:/${publish}/org.eclipse.egf/site.p2" /> |
| <arg value="-r" /> |
| <arg value="file:/${publish}/org.eclipse.egf.releng/site.p2" /> |
| |
| <arg value="-i" /> |
| <arg value="org.eclipse.egf.feature.group" /> |
| |
| |
| <arg value="-i" /> |
| <arg value="org.eclipse.egf.feature.group" /> |
| <arg value="-i" /> |
| <arg value="org.eclipse.egf.releng.feature.group" /> |
| |
| </args> |
| </eclipse.launch> |
| </target> |
| </project> |