blob: 35202971799dc0ba40aaeaa003ac00a3598928b1 [file] [log] [blame]
<?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="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="-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 $${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,BuildStep_2,PublishStep_3,InstallStep_4,AntStep_5,CleanStep_6,BuildStep_7,AntStep_8,BuildStep_9,TestStep_10,TestStep_11,EgfStep_12,PublishStep_13,EgfStep_14,PublishStep_15,EgfStep_16,PublishStep_17,PublishStep_18,AggregateStep_19,AntStep_20,JavadocStep_21" />
<target name="CleanStep_1" >
<antcall target="clean.all" />
</target>
<target name="CleanStep_6" >
<antcall target="clean.result" />
</target>
<target name="BuildStep_2" 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_2/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_2/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_7" 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_7/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_7/build.mspec" />
</cmdargs>
</buckminster>
<echo message="No builders invocation specified" />
</target>
<target name="BuildStep_9" 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_9/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_9/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_3" 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_13" 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>
<echo message="Publish dropins"/>
<condition property="site.src" value="site.signed" else="site">
<istrue value="${site.signing}" />
</condition>
<copy todir="${publish}/org.eclipse.egf.sdk/dropins/org.eclipse.egf.sdk/eclipse/">
<fileset dir="${result}/output">
<include name="org.eclipse.egf.sdk*/${site.src}/plugins/*.jar"/>
<include name="org.eclipse.egf.sdk*/${site.src}/features/*.jar"/>
</fileset>
<filtermapper>
<replaceregex pattern=".*_.*-eclipse\.feature.${site.src}.plugins" replace="plugins" />
<replaceregex pattern=".*_.*-eclipse\.feature.${site.src}.features" replace="features" />
</filtermapper>
</copy>
<buckminster command="perform">
<globargs>
<arg value="-DsiteDir=${publish}/org.eclipse.egf.sdk/dropins/org.eclipse.egf.sdk/eclipse/" />
</globargs>
<cmdargs>
<arg value="BuildStep_7:buckminster#convertSiteToRuntime" />
</cmdargs>
</buckminster>
<pathconvert property="featurefilePublishStep_13">
<first count="1">
<fileset dir="${result}/output" includes="org.eclipse.egf.sdk*eclipse.feature/temp/manifest/feature.xml" />
</first>
</pathconvert>
<loadfile property="featureversionPublishStep_13" srcFile="${featurefilePublishStep_13}">
<filterchain>
<striplinebreaks/>
<replaceregex
pattern="^.*&lt;feature[^&gt;]*version=&quot;([^&quot;]*)&quot;.*$"
replace="\1"/>
</filterchain>
</loadfile>
<touch file="${publish}/org.eclipse.egf.sdk/dropins/org.eclipse.egf.sdk/org.eclipse.egf.sdk_version_${featureversionPublishStep_13}" />
</target>
<target name="PublishStep_15" 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>
<echo message="Publish dropins"/>
<condition property="site.src" value="site.signed" else="site">
<istrue value="${site.signing}" />
</condition>
<copy todir="${publish}/org.eclipse.egf.portfolio.acceleo3/dropins/org.eclipse.egf.portfolio.acceleo3/eclipse/">
<fileset dir="${result}/output">
<include name="org.eclipse.egf.portfolio.acceleo3*/${site.src}/plugins/*.jar"/>
<include name="org.eclipse.egf.portfolio.acceleo3*/${site.src}/features/*.jar"/>
</fileset>
<filtermapper>
<replaceregex pattern=".*_.*-eclipse\.feature.${site.src}.plugins" replace="plugins" />
<replaceregex pattern=".*_.*-eclipse\.feature.${site.src}.features" replace="features" />
</filtermapper>
</copy>
<buckminster command="perform">
<globargs>
<arg value="-DsiteDir=${publish}/org.eclipse.egf.portfolio.acceleo3/dropins/org.eclipse.egf.portfolio.acceleo3/eclipse/" />
</globargs>
<cmdargs>
<arg value="BuildStep_7:buckminster#convertSiteToRuntime" />
</cmdargs>
</buckminster>
<pathconvert property="featurefilePublishStep_15">
<first count="1">
<fileset dir="${result}/output" includes="org.eclipse.egf.portfolio.acceleo3*eclipse.feature/temp/manifest/feature.xml" />
</first>
</pathconvert>
<loadfile property="featureversionPublishStep_15" srcFile="${featurefilePublishStep_15}">
<filterchain>
<striplinebreaks/>
<replaceregex
pattern="^.*&lt;feature[^&gt;]*version=&quot;([^&quot;]*)&quot;.*$"
replace="\1"/>
</filterchain>
</loadfile>
<touch file="${publish}/org.eclipse.egf.portfolio.acceleo3/dropins/org.eclipse.egf.portfolio.acceleo3/org.eclipse.egf.portfolio.acceleo3_version_${featureversionPublishStep_15}" />
</target>
<target name="PublishStep_17" 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>
<echo message="Publish dropins"/>
<condition property="site.src" value="site.signed" else="site">
<istrue value="${site.signing}" />
</condition>
<copy todir="${publish}/org.eclipse.egf.portfolio.atl/dropins/org.eclipse.egf.portfolio.atl/eclipse/">
<fileset dir="${result}/output">
<include name="org.eclipse.egf.portfolio.atl*/${site.src}/plugins/*.jar"/>
<include name="org.eclipse.egf.portfolio.atl*/${site.src}/features/*.jar"/>
</fileset>
<filtermapper>
<replaceregex pattern=".*_.*-eclipse\.feature.${site.src}.plugins" replace="plugins" />
<replaceregex pattern=".*_.*-eclipse\.feature.${site.src}.features" replace="features" />
</filtermapper>
</copy>
<buckminster command="perform">
<globargs>
<arg value="-DsiteDir=${publish}/org.eclipse.egf.portfolio.atl/dropins/org.eclipse.egf.portfolio.atl/eclipse/" />
</globargs>
<cmdargs>
<arg value="BuildStep_7:buckminster#convertSiteToRuntime" />
</cmdargs>
</buckminster>
<pathconvert property="featurefilePublishStep_17">
<first count="1">
<fileset dir="${result}/output" includes="org.eclipse.egf.portfolio.atl*eclipse.feature/temp/manifest/feature.xml" />
</first>
</pathconvert>
<loadfile property="featureversionPublishStep_17" srcFile="${featurefilePublishStep_17}">
<filterchain>
<striplinebreaks/>
<replaceregex
pattern="^.*&lt;feature[^&gt;]*version=&quot;([^&quot;]*)&quot;.*$"
replace="\1"/>
</filterchain>
</loadfile>
<touch file="${publish}/org.eclipse.egf.portfolio.atl/dropins/org.eclipse.egf.portfolio.atl/org.eclipse.egf.portfolio.atl_version_${featureversionPublishStep_17}" />
</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.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>
<echo message="Publish dropins"/>
<condition property="site.src" value="site.signed" else="site">
<istrue value="${site.signing}" />
</condition>
<copy todir="${publish}/org.eclipse.egf.portfolio.genchain.ecoretools/dropins/org.eclipse.egf.portfolio.genchain.ecoretools/eclipse/">
<fileset dir="${result}/output">
<include name="org.eclipse.egf.portfolio.genchain.ecoretools*/${site.src}/plugins/*.jar"/>
<include name="org.eclipse.egf.portfolio.genchain.ecoretools*/${site.src}/features/*.jar"/>
</fileset>
<filtermapper>
<replaceregex pattern=".*_.*-eclipse\.feature.${site.src}.plugins" replace="plugins" />
<replaceregex pattern=".*_.*-eclipse\.feature.${site.src}.features" replace="features" />
</filtermapper>
</copy>
<buckminster command="perform">
<globargs>
<arg value="-DsiteDir=${publish}/org.eclipse.egf.portfolio.genchain.ecoretools/dropins/org.eclipse.egf.portfolio.genchain.ecoretools/eclipse/" />
</globargs>
<cmdargs>
<arg value="BuildStep_7:buckminster#convertSiteToRuntime" />
</cmdargs>
</buckminster>
<pathconvert property="featurefilePublishStep_18">
<first count="1">
<fileset dir="${result}/output" includes="org.eclipse.egf.portfolio.genchain.ecoretools*eclipse.feature/temp/manifest/feature.xml" />
</first>
</pathconvert>
<loadfile property="featureversionPublishStep_18" srcFile="${featurefilePublishStep_18}">
<filterchain>
<striplinebreaks/>
<replaceregex
pattern="^.*&lt;feature[^&gt;]*version=&quot;([^&quot;]*)&quot;.*$"
replace="\1"/>
</filterchain>
</loadfile>
<touch file="${publish}/org.eclipse.egf.portfolio.genchain.ecoretools/dropins/org.eclipse.egf.portfolio.genchain.ecoretools/org.eclipse.egf.portfolio.genchain.ecoretools_version_${featureversionPublishStep_18}" />
</target>
<target name="TestStep_10" 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_10.xml" />
<arg value="--terseXML" />
<arg value="--flatXML"/>
</cmdargs>
</buckminster>
</target>
<target name="TestStep_11" 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_11.xml" />
<arg value="--terseXML" />
<arg value="--flatXML"/>
</cmdargs>
</buckminster>
</target>
<target name="AntStep_5">
<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_8" 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_20">
<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_21">
<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_12" 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_14" 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_16" 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_19" depends="init,install.egf" >
<anteclipse target="AggregateStep_19_dropins" />
<anteclipse target="AggregateStep_19_sitep2" />
</target>
<target name="AggregateStep_19_dropins">
<pathconvert property="aggregateDropinsFrom_org.eclipse.egf.sdk">
<first count="1">
<dirset dir="${publish}/org.eclipse.egf.sdk/dropins" includes="**/eclipse/" />
</first>
</pathconvert>
<copy todir="${publish}/org.eclipse.egf.site/dropins/org.eclipse.egf.site/eclipse/" >
<fileset dir="${aggregateDropinsFrom_org.eclipse.egf.sdk}"/>
</copy>
<pathconvert property="aggregateVersionFrom_org.eclipse.egf.sdk">
<first count="1">
<fileset dir="${publish}/org.eclipse.egf.sdk/dropins" includes="**/*_version_*" />
</first>
</pathconvert>
<copy todir="${publish}/org.eclipse.egf.site/dropins/org.eclipse.egf.site/" >
<fileset file="${aggregateVersionFrom_org.eclipse.egf.sdk}"/>
</copy>
<pathconvert property="aggregateDropinsFrom_org.eclipse.egf.portfolio.acceleo3">
<first count="1">
<dirset dir="${publish}/org.eclipse.egf.portfolio.acceleo3/dropins" includes="**/eclipse/" />
</first>
</pathconvert>
<copy todir="${publish}/org.eclipse.egf.site/dropins/org.eclipse.egf.site/eclipse/" >
<fileset dir="${aggregateDropinsFrom_org.eclipse.egf.portfolio.acceleo3}"/>
</copy>
<pathconvert property="aggregateVersionFrom_org.eclipse.egf.portfolio.acceleo3">
<first count="1">
<fileset dir="${publish}/org.eclipse.egf.portfolio.acceleo3/dropins" includes="**/*_version_*" />
</first>
</pathconvert>
<copy todir="${publish}/org.eclipse.egf.site/dropins/org.eclipse.egf.site/" >
<fileset file="${aggregateVersionFrom_org.eclipse.egf.portfolio.acceleo3}"/>
</copy>
<pathconvert property="aggregateDropinsFrom_org.eclipse.egf.portfolio.atl">
<first count="1">
<dirset dir="${publish}/org.eclipse.egf.portfolio.atl/dropins" includes="**/eclipse/" />
</first>
</pathconvert>
<copy todir="${publish}/org.eclipse.egf.site/dropins/org.eclipse.egf.site/eclipse/" >
<fileset dir="${aggregateDropinsFrom_org.eclipse.egf.portfolio.atl}"/>
</copy>
<pathconvert property="aggregateVersionFrom_org.eclipse.egf.portfolio.atl">
<first count="1">
<fileset dir="${publish}/org.eclipse.egf.portfolio.atl/dropins" includes="**/*_version_*" />
</first>
</pathconvert>
<copy todir="${publish}/org.eclipse.egf.site/dropins/org.eclipse.egf.site/" >
<fileset file="${aggregateVersionFrom_org.eclipse.egf.portfolio.atl}"/>
</copy>
<pathconvert property="aggregateDropinsFrom_org.eclipse.egf.portfolio.genchain.ecoretools">
<first count="1">
<dirset dir="${publish}/org.eclipse.egf.portfolio.genchain.ecoretools/dropins" includes="**/eclipse/" />
</first>
</pathconvert>
<copy todir="${publish}/org.eclipse.egf.site/dropins/org.eclipse.egf.site/eclipse/" >
<fileset dir="${aggregateDropinsFrom_org.eclipse.egf.portfolio.genchain.ecoretools}"/>
</copy>
<pathconvert property="aggregateVersionFrom_org.eclipse.egf.portfolio.genchain.ecoretools">
<first count="1">
<fileset dir="${publish}/org.eclipse.egf.portfolio.genchain.ecoretools/dropins" includes="**/*_version_*" />
</first>
</pathconvert>
<copy todir="${publish}/org.eclipse.egf.site/dropins/org.eclipse.egf.site/" >
<fileset file="${aggregateVersionFrom_org.eclipse.egf.portfolio.genchain.ecoretools}"/>
</copy>
</target>
<target name="AggregateStep_19_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-helios/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_4" 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="-i" />
<arg value="org.eclipse.platform.ide" />
<arg value="-i" />
<arg value="org.eclipse.egf.feature.group" />
</args>
</eclipse.launch>
</target>
</project>