blob: 1bb02813a405dcc29a96b73046fa8dd12bae7e22 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (c) 2010 SAP AG.
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:
Cloudsmith Inc - build.xml for Buckminster project
Martin Taal - changes for Teneo
Michael Wenz - changes Graphiti
The Teneo ant_common.xml was used as a template for creating this file:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org.eclipse.emf.teneo/releng/org.eclipse.emf.teneo.releng.buckminster/ant_common.xml?root=Modeling_Project&view=log
Some important parts have been copied from Buckminster's own build setup:
http://dev.eclipse.org/viewsvn/index.cgi/trunk/org.eclipse.buckminster.releng/build.xml?root=Tools_BUCKMINSTER&view=markup
-->
<project>
<!-- This macro executes the default application of an eclipse installation that resides
in the folder ${buildtools}/@app
-->
<macrodef name="eclipse.launch">
<attribute name="app" />
<element name="args" optional="true" />
<sequential>
<!-- We assume that the eclipse installation is beneath ${buildtools} -->
<property name="@{app}.deploy.dir" value="${toolsPath}/@{app}" />
<!-- Find the Eclipse launcher and adding 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>
<!-- Launch the eclipse application -->
<java fork="true" jar="${@{app}.launcher}" dir="${@{app}.deploy.dir}">
<!-- Uncomment to debug <jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/> -->
<args />
</java>
</sequential>
</macrodef>
<macrodef name="buckminster">
<attribute name="command" />
<attribute name="workspace" />
<element name="globargs" optional="true" />
<element name="cmdargs" optional="true" />
<sequential>
<eclipse.launch app="buckminster">
<args>
<jvmarg value="-Xmx1024m" />
<jvmarg value="-Dbugfix.288796=true" />
<arg value="-data" />
<arg value="@{workspace}" />
<arg value="--loglevel" />
<arg value="${buckminster.loglevel}" />
<arg value="--displaystacktrace" />
<arg value="@{command}" />
<globargs />
<arg value="-P" />
<arg value="${properties.tmp}" />
<cmdargs />
</args>
</eclipse.launch>
</sequential>
</macrodef>
</project>