Commit 7a002615 authored by Florian Hölzl's avatar Florian Hölzl

trying to use buckminster ant builder to generate ecore model upon Eclipse build

parent 33799e67
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="generated-src"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
......
......@@ -5,6 +5,31 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buckminster.ant.AntBuilder</name>
<arguments>
<dictionary>
<key>delta.resource</key>
<value>src/ant_tasks</value>
</dictionary>
<dictionary>
<key>given.name</key>
<value>Ant tasks compile</value>
</dictionary>
<dictionary>
<key>script.file</key>
<value>model/generate-ecore.xml</value>
</dictionary>
<dictionary>
<key>derived.resource</key>
<value>generated-src</value>
</dictionary>
<dictionary>
<key>refresh.resource</key>
<value>.</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
......
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
<actions>
<!-- Place your Actions here -->
<public name="generate-ecore" actor="jdt.ant">
<actorProperties>
<property key="buildFile" value="model/generate-ecore.xml" />
<property key="targets" value="generate-ecore"/>
</actorProperties>
<products>
<path path="generated-src" />
</products>
</public>
</actions>
<alterActions>
<public name="eclipse.build">
<prerequisites>
<attribute name="generate-ecore"/>
</prerequisites>
</public>
</alterActions>
</cspecExtension>
......@@ -18,9 +18,6 @@
<!-- Generation Task -->
<target name="generate-ecore">
<echo message="-------" />
<echo message="${fs:project.classpath}"/>
<echo message="-------" />
<emf.Ecore2Java
model="model/${model.name}.ecore"
genModel="model/${model.name}.genmodel"
......@@ -29,4 +26,8 @@
reconcileGenModel="reload">
</emf.Ecore2Java>
</target>
<target name="clean">
<delete dir="generated-src/org" />
</target>
</project>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment