summaryrefslogtreecommitdiffstatsabout
blob: 2fbc9eaca9cec26cfb9f5ca200c810c614d1cd7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.eclipse.m2m.atl.emftvm.compiler/compiler-compiler" default="all">

	<target name="all" depends="saveInlinedModels, saveInlinedModels-xmi"/>
	
	<target name="clean">
		<delete>
			<fileset dir=".">
	    		<exclude name="**/build.xml"/>
			</fileset>
		</delete>
	</target>
	
	<target name="loadModels">
		<emftvm.loadModel name="OCLtoEMFTVM" wspath="org.eclipse.m2m.atl.emftvm.compiler/transformations/OCLtoEMFTVM.atl"/>
		<emftvm.loadModel name="ATLtoEMFTVM" wspath="org.eclipse.m2m.atl.emftvm.compiler/transformations/ATLtoEMFTVM.atl"/>
		<emftvm.loadModel name="EMFTVMCopy" wspath="org.eclipse.m2m.atl.emftvm.compiler/transformations/EMFTVMCopy.atl"/>
		<emftvm.loadModel name="InlineCodeblocks" wspath="org.eclipse.m2m.atl.emftvm.compiler/transformations/InlineCodeblocks.atl"/>
		<emftvm.loadModel name="ATLWFR" wspath="org.eclipse.m2m.atl.emftvm.compiler/transformations/ATLWFR.atl"/>
		<emftvm.loadMetamodel name="ATL" uri="http://www.eclipse.org/gmt/2005/ATL"/>
		<emftvm.loadMetamodel name="Problem" uri="platform:/plugin/org.eclipse.m2m.atl.common/org/eclipse/m2m/atl/common/resources/Problem.ecore"/>
	</target>

	<target name="compile-OCLtoEMFTVM" depends="loadModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="ATLtoEMFTVM">
			<metamodel name="ATL"/>
			<metamodel name="Problem"/>
			<inputmodel name="OCLtoEMFTVM" as="IN"/>
			<outputmodel name="OCLtoEMFTVM-OUT" as="OUT" wspath="${ant.project.name}/OCLtoEMFTVM-noinline.emftvm"/>
			<outputmodel name="OCLtoEMFTVM-PBS" as="PBS" wspath="${ant.project.name}/OCLtoEMFTVM-noinline-problems.xmi"/>
			<outputmodel name="OCLtoEMFTVM-match" as="match" wspath="${ant.project.name}/OCLtoEMFTVM-noinline-match.trace"/>
			<inoutmodel name="OCLtoEMFTVM-trace" as="trace" wspath="${ant.project.name}/OCLtoEMFTVM-noinline.trace"/>
		</emftvm.run>
	</target>

	<target name="compile-ATLtoEMFTVM" depends="loadModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="ATLtoEMFTVM">
			<metamodel name="ATL"/>
			<metamodel name="Problem"/>
			<inputmodel name="ATLtoEMFTVM" as="IN"/>
			<outputmodel name="ATLtoEMFTVM-OUT" as="OUT" wspath="${ant.project.name}/ATLtoEMFTVM-noinline.emftvm"/>
			<outputmodel name="ATLtoEMFTVM-PBS" as="PBS" wspath="${ant.project.name}/ATLtoEMFTVM-noinline-problems.xmi"/>
			<outputmodel name="ATLtoEMFTVM-match" as="match" wspath="${ant.project.name}/ATLtoEMFTVM-noinline-match.trace"/>
			<inoutmodel name="ATLtoEMFTVM-trace" as="trace" wspath="${ant.project.name}/ATLtoEMFTVM-noinline.trace"/>
		</emftvm.run>
	</target>

	<target name="compile-EMFTVMCopy" depends="loadModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="ATLtoEMFTVM">
			<metamodel name="ATL"/>
			<metamodel name="Problem"/>
			<inputmodel name="EMFTVMCopy" as="IN"/>
			<outputmodel name="EMFTVMCopy-OUT" as="OUT" wspath="${ant.project.name}/EMFTVMCopy-noinline.emftvm"/>
			<outputmodel name="EMFTVMCopy-PBS" as="PBS" wspath="${ant.project.name}/EMFTVMCopy-noinline-problems.xmi"/>
		</emftvm.run>
	</target>

	<target name="compile-InlineCodeblocks" depends="loadModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="ATLtoEMFTVM">
			<metamodel name="ATL"/>
			<metamodel name="Problem"/>
			<inputmodel name="InlineCodeblocks" as="IN"/>
			<outputmodel name="InlineCodeblocks-OUT" as="OUT" wspath="${ant.project.name}/InlineCodeblocks-noinline.emftvm"/>
			<outputmodel name="InlineCodeblocks-PBS" as="PBS" wspath="${ant.project.name}/InlineCodeblocks-noinline-problems.xmi"/>
		</emftvm.run>
	</target>

	<target name="compile-ATLWFR" depends="loadModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="ATLtoEMFTVM">
			<metamodel name="ATL"/>
			<metamodel name="Problem"/>
			<inputmodel name="ATLWFR" as="IN"/>
			<outputmodel name="ATLWFR-OUT" as="OUT" wspath="${ant.project.name}/ATLWFR-noinline.emftvm"/>
			<outputmodel name="ATLWFR-PBS" as="PBS" wspath="${ant.project.name}/ATLWFR-noinline-problems.xmi"/>
		</emftvm.run>
	</target>

	<target name="saveModels" depends="compile-OCLtoEMFTVM, compile-ATLtoEMFTVM, compile-EMFTVMCopy, compile-InlineCodeblocks, compile-ATLWFR">
		<emftvm.saveModel name="OCLtoEMFTVM-OUT" derived="true"/>
		<emftvm.saveModel name="OCLtoEMFTVM-PBS" derived="true"/>
		<emftvm.saveModel name="OCLtoEMFTVM-match" derived="true"/>
		<emftvm.saveModel name="OCLtoEMFTVM-trace" derived="true"/>
		<emftvm.saveModel name="ATLtoEMFTVM-OUT" derived="true"/>
		<emftvm.saveModel name="ATLtoEMFTVM-PBS" derived="true"/>
		<emftvm.saveModel name="ATLtoEMFTVM-match" derived="true"/>
		<emftvm.saveModel name="ATLtoEMFTVM-trace" derived="true"/>
	</target>

	<target name="copy-xmi" depends="saveModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="EMFTVMCopy">
			<inputmodel name="OCLtoEMFTVM-OUT" as="IN"/>
			<outputmodel name="OCLtoEMFTVM-OUT-XMI" as="OUT" wspath="${ant.project.name}/OCLtoEMFTVM-noinline.emftvm.xmi"/>
		</emftvm.run>
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="EMFTVMCopy">
			<inputmodel name="ATLtoEMFTVM-OUT" as="IN"/>
			<outputmodel name="ATLtoEMFTVM-OUT-XMI" as="OUT" wspath="${ant.project.name}/ATLtoEMFTVM-noinline.emftvm.xmi"/>
		</emftvm.run>
	</target>

	<target name="saveModels-xmi" depends="copy-xmi">
		<emftvm.saveModel name="OCLtoEMFTVM-OUT-XMI" derived="true"/>
		<emftvm.saveModel name="ATLtoEMFTVM-OUT-XMI" derived="true"/>
	</target>

	<target name="inline-OCLtoEMFTVM" depends="saveModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="InlineCodeblocks">
			<metamodel name="ATL"/>
			<inoutmodel name="OCLtoEMFTVM-OUT" as="IN" wspath="${ant.project.name}/OCLtoEMFTVM.emftvm"/>
			<outputmodel name="OCLtoEMFTVM-INLINED-match" as="match" wspath="${ant.project.name}/OCLtoEMFTVM-match.trace"/>
			<inoutmodel name="OCLtoEMFTVM-INLINED-trace" as="trace" wspath="${ant.project.name}/OCLtoEMFTVM.trace"/>
		</emftvm.run>
	</target>

	<target name="inline-ATLtoEMFTVM" depends="saveModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="InlineCodeblocks">
			<metamodel name="ATL"/>
			<inoutmodel name="ATLtoEMFTVM-OUT" as="IN" wspath="${ant.project.name}/ATLtoEMFTVM.emftvm"/>
			<outputmodel name="ATLtoEMFTVM-INLINED-match" as="match" wspath="${ant.project.name}/ATLtoEMFTVM-match.trace"/>
			<inoutmodel name="ATLtoEMFTVM-INLINED-trace" as="trace" wspath="${ant.project.name}/ATLtoEMFTVM.trace"/>
		</emftvm.run>
	</target>

	<target name="inline-EMFTVMCopy" depends="saveModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="InlineCodeblocks">
			<metamodel name="ATL"/>
			<inoutmodel name="EMFTVMCopy-OUT" as="IN" wspath="${ant.project.name}/EMFTVMCopy.emftvm"/>
		</emftvm.run>
	</target>

	<target name="inline-InlineCodeblocks" depends="saveModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="InlineCodeblocks">
			<metamodel name="ATL"/>
			<inoutmodel name="InlineCodeblocks-OUT" as="IN" wspath="${ant.project.name}/InlineCodeblocks.emftvm"/>
		</emftvm.run>
	</target>

	<target name="inline-ATLWFR" depends="saveModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="InlineCodeblocks">
			<metamodel name="ATL"/>
			<inoutmodel name="ATLWFR-OUT" as="IN" wspath="${ant.project.name}/ATLWFR.emftvm"/>
		</emftvm.run>
	</target>

	<target name="saveInlinedModels" depends="inline-OCLtoEMFTVM, inline-ATLtoEMFTVM, inline-EMFTVMCopy, inline-InlineCodeblocks, inline-ATLWFR">
		<emftvm.saveModel name="OCLtoEMFTVM-OUT" derived="true"/>
		<emftvm.saveModel name="OCLtoEMFTVM-INLINED-match" derived="true"/>
		<emftvm.saveModel name="OCLtoEMFTVM-INLINED-trace" derived="true"/>
		<emftvm.saveModel name="ATLtoEMFTVM-OUT" derived="true"/>
		<emftvm.saveModel name="ATLtoEMFTVM-INLINED-match" derived="true"/>
		<emftvm.saveModel name="ATLtoEMFTVM-INLINED-trace" derived="true"/>
		<emftvm.saveModel name="EMFTVMCopy-OUT" derived="true"/>
		<emftvm.saveModel name="InlineCodeblocks-OUT" derived="true"/>
		<emftvm.saveModel name="ATLWFR-OUT" derived="true"/>
	</target>

	<target name="copyInlined-xmi" depends="saveInlinedModels">
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="EMFTVMCopy">
			<inputmodel name="OCLtoEMFTVM-OUT" as="IN"/>
			<outputmodel name="OCLtoEMFTVM-INLINED-XMI" as="OUT" wspath="${ant.project.name}/OCLtoEMFTVM.emftvm.xmi"/>
		</emftvm.run>
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="EMFTVMCopy">
			<inputmodel name="ATLtoEMFTVM-OUT" as="IN"/>
			<outputmodel name="ATLtoEMFTVM-INLINED-XMI" as="OUT" wspath="${ant.project.name}/ATLtoEMFTVM.emftvm.xmi"/>
		</emftvm.run>
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="EMFTVMCopy">
			<inputmodel name="EMFTVMCopy-OUT" as="IN"/>
			<outputmodel name="EMFTVMCopy-INLINED-XMI" as="OUT" wspath="${ant.project.name}/EMFTVMCopy.emftvm.xmi"/>
		</emftvm.run>
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="EMFTVMCopy">
			<inputmodel name="InlineCodeblocks-OUT" as="IN"/>
			<outputmodel name="InlineCodeblocks-INLINED-XMI" as="OUT" wspath="${ant.project.name}/InlineCodeblocks.emftvm.xmi"/>
		</emftvm.run>
		<emftvm.run modulepath="platform:/resource/org.eclipse.m2m.atl.emftvm.compiler/transformations/" module="EMFTVMCopy">
			<inputmodel name="ATLWFR-OUT" as="IN"/>
			<outputmodel name="ATLWFR-INLINED-XMI" as="OUT" wspath="${ant.project.name}/ATLWFR.emftvm.xmi"/>
		</emftvm.run>
	</target>

	<target name="saveInlinedModels-xmi" depends="copyInlined-xmi">
		<emftvm.saveModel name="OCLtoEMFTVM-INLINED-XMI" derived="true"/>
		<emftvm.saveModel name="ATLtoEMFTVM-INLINED-XMI" derived="true"/>
		<emftvm.saveModel name="EMFTVMCopy-INLINED-XMI" derived="true"/>
		<emftvm.saveModel name="InlineCodeblocks-INLINED-XMI" derived="true"/>
		<emftvm.saveModel name="ATLWFR-INLINED-XMI" derived="true"/>
	</target>

</project>