Permalink
Browse files

Added product action for buckminster

  • Loading branch information...
1 parent f0189cf commit 6628bc5e866b09e1eeea739b0ec6b36b08c84891 Arvid Berg committed Oct 1, 2010
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<cspecExtension
+ xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
+ xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
+
+ <actions>
+ <public name="create.product" actor="ant">
+ <actorProperties>
+ <property key="buildFile" value="build/product.ant"/>
+ <property key="targets" value="create.product"/>
+ </actorProperties>
+ <properties>
+ <property key="profile" value="Bioclipse"/>
+ <property key="iu" value="net.bioclipse.product"/>
+ </properties>
+ <prerequisites alias="repository">
+ <attribute name="site.p2"/>
+ </prerequisites>
+ <products alias="destination" base="${buckminster.output}">
+ <path path="Bioclipse/"/>
+ </products>
+ </public>
+ <public name="create.product.zip" actor="ant">
+ <actorProperties>
+ <property key="buildFileId" value="buckminster.pdetasks"/>
+ <property key="targets" value="create.zip"/>
+ </actorProperties>
+ <prerequisites alias="action.requirements">
+ <attribute name="create.product"/>
+ </prerequisites>
+ <products alias="action.output" base="${buckminster.output}">
+ <path path="Bioclipse.zip"/>
+ </products>
+ </public>
+ </actions>
+</cspecExtension>
@@ -0,0 +1 @@
+buckminster.output.root = ${workspace.root}/output
@@ -0,0 +1,45 @@
+<project>
+ <pathconvert property="equinox.launcher.jar">
+ <first count="1">
+ <sort>
+ <fileset dir="${eclipse.home}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar"/>
+ <reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators">
+ <date/>
+ </reverse>
+ </sort>
+ </first>
+ </pathconvert>
+
+ <target name="create.product">
+ <property name="destination" location="${sp:destination}"/>
+ <delete dir="${destination}"/>
+ <makeurl property="repository" file="${sp:repository}"/>
+ <mkdir dir="${destination}"/>
+ <echoproperties/>
+ <echo message="${equinox.launcher.jar}"/>
+ <echo message="${repository}"/>
+ <echo message="${destination}"/>
+ <java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >
+ <arg value="-application"/>
+ <arg value="org.eclipse.equinox.p2.director"/>
+ <arg value="-repository"/>
+ <arg value="${repository}"/>
+ <arg value="-destination"/>
+ <arg value="${destination}"/>
+ <arg value="-profile"/>
+ <arg value="${profile}"/>
+ <arg value="-profileProperties" />
+ <arg value="org.eclipse.update.install.features=true" />
+ <arg value="-installIU"/>
+ <arg value="${iu}"/>
+ <arg value="-p2.os" />
+ <arg value="${target.os}" />
+ <arg value="-p2.ws" />
+ <arg value="${target.ws}" />
+ <arg value="-p2.arch" />
+ <arg value="${target.arch}" />
+ <arg value="-consoleLog"/>
+ <!-- jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/ -->
+ </java>
+ </target>
+</project>

0 comments on commit 6628bc5

Please sign in to comment.