| <?xml version="1.0" encoding="UTF-8"?> |
| <project name="test1" default="single" xmlns:xpt="eclipse.org/gmf/2008/xpand"> |
| |
| <target name="single"> |
| <xpt:template name="Template::echo" |
| inputURI="http://www.eclipse.org/emf/2002/Ecore#//EAnnotation" |
| templateroot="platform:/resource/org.eclipse.gmf.xpand.ant/examples/templates/" |
| outfile="xxx.test"/> |
| </target> |
| |
| <target name="multiple"> |
| <xpt:template-set templateRoot="platform:/resource/org.eclipse.gmf.xpand.ant/examples/templates/"> |
| <xpt:template name="Template::echo" bareinput="aaa"/> |
| <xpt:template name="Template::echo" bareinput="BBB"/> |
| <xpt:template name="Template::echo" inputURI="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#/"/> |
| </xpt:template-set> |
| </target> |
| |
| <target name="flow"> |
| <xpt:codegen-flow templateRoot="platform:/resource/org.eclipse.gmf.xpand.ant/examples/templates/"> |
| <xpt:template name="Template::echo" bareinput="one"/> |
| <echo message="-1-"/> |
| <xpt:template name="Template::echo" bareinput="two"/> |
| <echo message="-2-"/> |
| </xpt:codegen-flow> |
| </target> |
| </project> |