Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (70 sloc) 3.53 KB
<?xml version="1.0" encoding="UTF-8"?>
<!--
Buckminster Headless - build
Properties:
WORKSPACE Eclipse workspace location, or hudson job workspace
build.root Where to build? WARNING: This folder will be cleaned up, so do not point to user.home or something important
Default: ${WORKSPACE}/buildroot
buckminster.home Buckminster headless to use. See http://www.eclipse.org/buckminster/downloads.html
projects.location Where to find projects to build?
Default: ${WORKSPACE}
commands.file What to do?
Default: ${projects.location}/org.xtext.example.hellobuck.buckminster/commands.txt
-->
<project name="Buckminster Headless" default="buckminster">
<property name="WORKSPACE" location="${ant.file}/../../" />
<property name="build.root" location="${WORKSPACE}/buildroot" />
<property name="buckminster.home" location="/home/bettini/buckminster" />
<property name="projects.location" location="${WORKSPACE}" />
<property name="commands.file" location="${projects.location}/org.xtext.example.hellobuck.buckminster/commands.txt" />
<property name="target.platform" value="target.platform" />
<target name="buckminster" depends="cleanup" description="description">
<echo message="IMPORTANT: Populating an empty target platform may took over 10 minutes." />
<condition property="executable.file" value="buckminster.bat" else="buckminster">
<os family="windows" />
</condition>
<java fork="true" dir="${buckminster.home}" logError="true" classname="org.eclipse.core.launcher.Main" failonerror="true">
<classpath>
<fileset dir="${buckminster.home}/plugins">
<include name="org.eclipse.equinox.launcher_*.jar" />
</fileset>
</classpath>
<arg line='-update' />
<arg line='-data "${build.root}/buckminster.workspace"' />
<arg line='-configuration "${build.root}/configuration"' />
<arg line='--script "${commands.file}"' />
<sysproperty key="projects.location" value="${projects.location}" />
<sysproperty key="buckminster.output.root" value="${build.root}/buckminster.output" />
<sysproperty key="buckminster.temp.root" value="${build.root}/buckminster.temp" />
<sysproperty key="target.platform" value="${build.root}/${target.platform}" />
<jvmarg line=" -Xms256m -Xmx512m" />
</java>
<!-- <exec executable="${buckminster.home}/${executable.file}">
<arg value="-Dprojects.location=${projects.location}" />
<arg value="-Dbuckminster.output.root=${build.root}/buckminster.output" />
<arg value="-Dbuckminster.temp.root=${build.root}/buckminster.temp" />
<arg value="-Dtarget.platform=${build.root}/${target.platform}" />
<arg line="-data '${build.root}/buckminster.workspace'" />
<arg line="-configuration '${build.root}/configuration'" />
<arg line="-S '${commands.file}'" />
</exec> -->
<echo message=" " />
<echo message="Updatesite output in: ${build.root}/buckminster.output/org.xtext.example.hellobuck.site_*-eclipse.feature/site.p2/" />
</target>
<target name="cleanup">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${build.root}" defaultexcludes="false">
<exclude name="**/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/" />
<exclude name="**/${target.platform}/" />
</fileset>
</delete>
</target>
<target name="reset.target-platform">
<delete includeemptydirs="true">
<fileset dir="${build.root}" defaultexcludes="false">
<include name="**/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/" />
<include name="**/${target.platform}/" />
</fileset>
</delete>
</target>
</project>
You can’t perform that action at this time.