mparker | 27d8b00 | 2009-07-16 20:55:26 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 | <workflow> |
| 3 | <property name="outputPath" value="./"/> |
| 4 | <property name="modelPath" value="test/"/> |
| 5 | <property name="modelFile" value="TestGeneration.metaabm"/> |
| 6 | <property name="srcDir" value="srcgen"/>
|
| 7 | <property name="testing" value="false"/> |
| 8 | <property name="format" value="true"/> |
| 9 | <property name="genComments" value="true"/> |
| 10 | <property name="orgImports" value="true"/> |
| 11 | <property name="genStats" value="single"/> <!-- one of "none" "single" "cross" --> |
| 12 | <property name="buildProject" value="undefined.project"/>
|
| 13 | <property name="packageModifier" value=""/>
|
mparker | 27d8b00 | 2009-07-16 20:55:26 +0000 | [diff] [blame] | 14 |
|
| 15 | <bean id="metaabm" class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel"/>
|
| 16 | |
| 17 | <component id="xmiParser" class="org.eclipse.emf.mwe.utils.Reader"> |
| 18 | <uri value="${modelPath}"/> |
| 19 | <modelSlot value="model"/> |
| 20 | </component> |
| 21 |
|
| 22 | <component class="org.eclipse.xtend.check.CheckComponent">
|
| 23 | <metaModel idRef="metaabm"/>
|
| 24 | <checkFile value="metaabm::tmpl::edit"/>
|
| 25 | <emfAllChildrenSlot value="model"/>
|
| 26 | </component>
|
| 27 |
|
| 28 | <component id="javaGenerator" class="org.eclipse.xpand2.Generator" skipOnErrors="true" fileEncoding="iso-8859-1">
|
| 29 | <metaModel idRef="metaabm"/>
|
| 30 | <expand value="metaabm::tmpl::Java::Model FOR model"/>
|
| 31 | <outlet path="${outputPath}" overwrite="true" > |
| 32 | <postprocessor |
| 33 | class="org.eclipse.xpand2.output.JavaBeautifier"/> |
| 34 | <!--We'll put this back in when we figure out what options are available under M2T or wether we need to do a CQ for the hybridlabs code<postprocessor |
| 35 | class="org.hybridlabs.source.formatter.JavaImportBeautifier"> |
| 36 | <format value="false"/> |
| 37 | </postprocessor>--> |
| 38 | </outlet>
|
| 39 | <globalVarDef name="srcDir" value="'${srcDir}'"/> |
| 40 | <globalVarDef name="testing" value="${testing}"/>
|
| 41 | <globalVarDef name="buildProject" value="'${buildProject}'"/>
|
| 42 | <globalVarDef name="packageModifier" value="'${packageModifier}'"/>
|
| 43 | <globalVarDef name="genComments" value="'${genComments}'"/> |
| 44 | <globalVarDef name="orgImports" value="'${orgImports}'"/> |
| 45 | <globalVarDef name="genStats" value="'${genStats}'"/> |
| 46 | <fileEncoding value="ISO-8859-1"/>
|
| 47 | <prSrcPaths value="${outputPath}/${srcDir}"/>
|
| 48 | </component>
|
| 49 | </workflow> |