Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-11-27 07:33:16 -0500
committerMartin Taal2012-11-27 07:33:16 -0500
commitd73c0a0856cc8b18c01579374fedcea34893f57f (patch)
treeae233fd523bb3a6c8b42e53d1978bf43a61c4e45 /generator/org.eclipse.emf.texo.eclipse.generator/examples/texo-gen-macrodef.xml
parent9544222c7b9fa65ea21c6dd0c46538c557a36592 (diff)
downloadorg.eclipse.emf.texo-d73c0a0856cc8b18c01579374fedcea34893f57f.tar.gz
org.eclipse.emf.texo-d73c0a0856cc8b18c01579374fedcea34893f57f.tar.xz
org.eclipse.emf.texo-d73c0a0856cc8b18c01579374fedcea34893f57f.zip
Updated generator task def
Diffstat (limited to 'generator/org.eclipse.emf.texo.eclipse.generator/examples/texo-gen-macrodef.xml')
-rw-r--r--generator/org.eclipse.emf.texo.eclipse.generator/examples/texo-gen-macrodef.xml54
1 files changed, 28 insertions, 26 deletions
diff --git a/generator/org.eclipse.emf.texo.eclipse.generator/examples/texo-gen-macrodef.xml b/generator/org.eclipse.emf.texo.eclipse.generator/examples/texo-gen-macrodef.xml
index 134bd46a..adf1ba8d 100644
--- a/generator/org.eclipse.emf.texo.eclipse.generator/examples/texo-gen-macrodef.xml
+++ b/generator/org.eclipse.emf.texo.eclipse.generator/examples/texo-gen-macrodef.xml
@@ -11,45 +11,47 @@ Contributors:
-->
<project name="Texo Headless Generation Macrodef">
<macrodef name="texo.gen">
- <attribute name="eclipse"/>
- <attribute name="data"/>
- <attribute name="projectName" default=""/>
- <attribute name="modelLocation"/>
- <attribute name="dao" default="false"/>
- <attribute name="jpa" default="false"/>
+ <attribute name="eclipse" />
+ <attribute name="data" />
+ <attribute name="projectName" default="" />
+ <attribute name="modelLocation" />
+ <attribute name="dao" default="false" />
+ <attribute name="jpa" default="false" />
<sequential>
<condition property="dao.arg" value="-dao" else="">
- <istrue value="@{dao}"/>
+ <istrue value="@{dao}" />
</condition>
<condition property="jpa.arg" value="-jpa" else="">
- <istrue value="@{jpa}"/>
+ <istrue value="@{jpa}" />
</condition>
- <property name="eclipse.plugins" value="@{eclipse}/plugins"/>
- <property name="launcher.jar" value="${eclipse.plugins}/org.eclipse.equinox.launcher.jar"/>
+ <condition property="projectName.arg" value="-projectName" else="">
+ <istrue value="@{projectName}" />
+ </condition>
+
+ <property name="eclipse.plugins" value="@{eclipse}/plugins" />
+ <property name="launcher.jar" value="${eclipse.plugins}/org.eclipse.equinox.launcher.jar" />
<!-- copy the version numbered launcher jar to an unversion numbered launcher jar -->
<copy tofile="${launcher.jar}">
- <fileset dir="${eclipse.plugins}" includes="**/org.eclipse.equinox.launcher_*.jar"/>
+ <fileset dir="${eclipse.plugins}" includes="**/org.eclipse.equinox.launcher_*.jar" />
</copy>
- <!-- start Eclipse with java -->
- <java classpath="${launcher.jar}" fork="true"
- classname="org.eclipse.equinox.launcher.Main"
- failonerror="true">
- <arg value="-nosplash"/>
- <arg value="-application"/>
- <arg value="org.eclipse.emf.texo.eclipse.generator.TexoCodeGenerator"/>
- <arg value="-data"/>
- <arg value="@{data}"/>
- <arg value="-modelLocation"/>
- <arg value="@{modelLocation}"/>
- <arg value="-projectName"/>
- <arg value="@{projectName}"/>
- <arg value="${jpa.arg}"/>
- <arg value="${dao.arg}"/>
+ <!-- start Eclipse with java -->
+ <java classpath="${launcher.jar}" fork="true" classname="org.eclipse.equinox.launcher.Main" failonerror="true">
+ <arg value="-nosplash" />
+ <arg value="-application" />
+ <arg value="org.eclipse.emf.texo.eclipse.generator.TexoCodeGenerator" />
+ <arg value="-data" />
+ <arg value="@{data}" />
+ <arg value="-modelLocation" />
+ <arg value="@{modelLocation}" />
+ <arg value="${projectName.arg}" />
+ <arg value="@{projectName}" />
+ <arg value="${jpa.arg}" />
+ <arg value="${dao.arg}" />
</java>
</sequential>
</macrodef>

Back to the top