Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2008-10-31 13:38:31 +0000
committeratikhomirov2008-10-31 13:38:31 +0000
commiteb6cce8e47fe5d52bd317afb1cf7cf5ae89e4739 (patch)
treef0edd275a1db94c43987bc0a3ba694492fd79a20
parente0ae3dd14fd99f751edb594b0219a4e6cae3d099 (diff)
downloadorg.eclipse.gmf-tooling-eb6cce8e47fe5d52bd317afb1cf7cf5ae89e4739.tar.gz
org.eclipse.gmf-tooling-eb6cce8e47fe5d52bd317afb1cf7cf5ae89e4739.tar.xz
org.eclipse.gmf-tooling-eb6cce8e47fe5d52bd317afb1cf7cf5ae89e4739.zip
[251588] Ant integration for GMF-Xpand - examples (intentionally not included into binary build)
-rw-r--r--plugins/org.eclipse.gmf.xpand.ant/build.properties3
-rw-r--r--plugins/org.eclipse.gmf.xpand.ant/examples/templates/Template.xpt1
-rw-r--r--plugins/org.eclipse.gmf.xpand.ant/examples/test1.xml27
3 files changed, 30 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.xpand.ant/build.properties b/plugins/org.eclipse.gmf.xpand.ant/build.properties
index 79f64a885..c12f1b2be 100644
--- a/plugins/org.eclipse.gmf.xpand.ant/build.properties
+++ b/plugins/org.eclipse.gmf.xpand.ant/build.properties
@@ -15,7 +15,8 @@ bin.includes = META-INF/,\
plugin.xml,\
plugin.properties
src.includes = src/,\
- src-ant/
+ src-ant/,\
+ examples/
source..=src/
output..=bin/
source.antsupport.jar=src-ant/
diff --git a/plugins/org.eclipse.gmf.xpand.ant/examples/templates/Template.xpt b/plugins/org.eclipse.gmf.xpand.ant/examples/templates/Template.xpt
new file mode 100644
index 000000000..951003f00
--- /dev/null
+++ b/plugins/org.eclipse.gmf.xpand.ant/examples/templates/Template.xpt
@@ -0,0 +1 @@
+«DEFINE echo FOR Object»«this»«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.xpand.ant/examples/test1.xml b/plugins/org.eclipse.gmf.xpand.ant/examples/test1.xml
new file mode 100644
index 000000000..6fe7b5616
--- /dev/null
+++ b/plugins/org.eclipse.gmf.xpand.ant/examples/test1.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="test1" default="single" xmlns:zzz="eclipse.org/gmf/2008/xpand">
+
+ <target name="single">
+ <zzz:template name="Template::echo"
+ inputURI="http://www.eclipse.org/emf/2002/Ecore#//EAnnotation"
+ templateroot="platform:/resource/fff/tests/templates/"
+ outfile="xxx.test"/>
+ </target>
+
+ <target name="multiple">
+ <zzz:template-set templateRoot="platform:/resource/fff/tests/templates/">
+ <zzz:template name="Template::echo" bareinput="aaa"/>
+ <zzz:template name="Template::echo" bareinput="BBB"/>
+ <zzz:template name="Template::echo" inputURI="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#/"/>
+ </zzz:template-set>
+ </target>
+
+ <target name="flow">
+ <zzz:codegen-flow templateRoot="platform:/resource/fff/tests/templates/">
+ <zzz:template name="Template::echo" bareinput="one"/>
+ <echo message="-1-"/>
+ <zzz:template name="Template::echo" bareinput="two"/>
+ <echo message="-2-"/>
+ </zzz:codegen-flow>
+ </target>
+</project> \ No newline at end of file

Back to the top