forked from modelix/modelix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-scripts.xml
249 lines (232 loc) · 16.9 KB
/
build-scripts.xml
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<project name="org.modelix.build.scripts" default="build">
<!-- Generated by MPS -->
<property name="build.dir" location="build" />
<property name="build.tmp" location="${build.dir}/tmp/org.modelix.build.scripts" />
<property name="build.layout" location="${build.dir}/artifacts/org.modelix.build.scripts" />
<property name="webmps.home" location="${basedir}" />
<property name="mps.home" location="${webmps.home}/artifacts/mps" />
<property name="mps_home" location="${mps.home}" />
<property name="artifacts.root" location="${webmps.home}/artifacts" />
<property name="extensions.artifacts" location="${artifacts.root}/de.itemis.mps.extensions" />
<property name="webmps.modules" location="${webmps.home}/mps" />
<property name="artifacts.mps" location="${mps.home}" />
<property name="artifacts.de.itemis.mps.extensions" location="${extensions.artifacts}" />
<property file="${artifacts.mps}/build.properties" prefix="import.mps" />
<property file="${artifacts.de.itemis.mps.extensions}/build.properties" prefix="import.de.itemis.mps.extensions" />
<property name="mps.build.number" value="${import.mps.mps.build.number}" />
<property name="mps.date" value="${import.mps.mps.date}" />
<property name="mps.build.vcs.number" value="${import.mps.mps.build.vcs.number}" />
<property name="mps.teamcity.buildConfName" value="${import.mps.mps.teamcity.buildConfName}" />
<property name="mps.idea.platform.build.number" value="${import.mps.mps.idea.platform.build.number}" />
<property name="mps.mps.build.counter" value="${import.mps.mps.mps.build.counter}" />
<property name="mpsBootstrapCore.version" value="${import.mps.mpsBootstrapCore.version}" />
<property name="de.itemis.mps.extensions.versionNumber" value="${import.de.itemis.mps.extensions.de.itemis.mps.extensions.versionNumber}" />
<property name="environment" value="env" />
<property name="env.JAVA_HOME" value="${java.home}/.." />
<property name="jdk.home" value="${env.JAVA_HOME}" />
<property name="mps.generator.skipUnmodifiedModels" value="false" />
<path id="path.mps.ant.path">
<pathelement location="${artifacts.mps}/lib/ant/lib/ant-mps.jar" />
<pathelement location="${artifacts.mps}/lib/jdom.jar" />
<pathelement location="${artifacts.mps}/lib/log4j.jar" />
</path>
<target name="assemble" depends="classes, declare-mps-tasks">
<mkdir dir="${build.layout}" />
<mkdir dir="${build.tmp}/default/org.modelix.zip" />
<mkdir dir="${build.tmp}/default/org.modelix.zip/org.modelix" />
<mkdir dir="${build.tmp}/default/org.modelix.zip/org.modelix/META-INF" />
<echoxml file="${build.tmp}/default/org.modelix.zip/org.modelix/META-INF/plugin.xml">
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude">
<id>org.modelix</id>
<name>org.modelix</name>
<version>1.0</version>
<depends>jetbrains.mps.core</depends>
<depends>jetbrains.mps.build</depends>
<depends>de.itemis.mps.extensions.build</depends>
<extensions defaultExtensionNs="com.intellij">
<mps.LanguageLibrary dir="/languages" />
</extensions>
</idea-plugin>
</echoxml>
<mkdir dir="${build.tmp}/default/org.modelix.zip/org.modelix/languages" />
<mkdir dir="${build.tmp}/default/org.modelix.zip/org.modelix/languages/org.modelix" />
<mkdir dir="${build.tmp}/default/org.modelix.build.jar" />
<mkdir dir="${build.tmp}/default/org.modelix.build.jar/META-INF" />
<echoxml file="${build.tmp}/default/org.modelix.build.jar/META-INF/module.xml">
<module namespace="org.modelix.build" type="solution" uuid="79531264-5c70-4f13-ad1b-5c32ef78c6f6">
<dependencies>
<module ref="f1fb7b1c-ce0d-423c-9369-4a661d600029(de.itemis.mps.extensions.build)" kind="cl" />
<module ref="422c2909-59d6-41a9-b318-40e6256b250f(jetbrains.mps.ide.build)" kind="cl" />
</dependencies>
<uses>
<language id="l:798100da-4f0a-421a-b991-71f8c50ce5d2:jetbrains.mps.build" />
<language id="l:0cf935df-4699-4e9c-a132-fa109541cba3:jetbrains.mps.build.mps" />
</uses>
<classpath>
<entry path="." />
</classpath>
<sources jar="org.modelix.build-src.jar" descriptor="org.modelix.build.msd" />
</module>
</echoxml>
<jar destfile="${build.tmp}/default/org.modelix.zip/org.modelix/languages/org.modelix/org.modelix.build.jar" duplicate="preserve">
<fileset dir="${build.tmp}/java/out/org.modelix.build" />
<fileset dir="${webmps.modules}/org.modelix.build/source_gen" includes="**/trace.info, **/exports, **/*.mps, **/checkpoints" />
<fileset dir="${build.tmp}/default/org.modelix.build.jar" />
</jar>
<copyModels todir="${build.tmp}/customProcessors/copyModels/org.modelix.build-models">
<fileset dir="${webmps.modules}/org.modelix.build/models" includes="**/*.mps, **/*.mpsr, **/.model" />
</copyModels>
<jar destfile="${build.tmp}/default/org.modelix.zip/org.modelix/languages/org.modelix/org.modelix.build-src.jar" duplicate="preserve">
<fileset dir="${webmps.modules}/org.modelix.build/source_gen">
<exclude name="**/trace.info" />
<exclude name="**/exports" />
<exclude name="**/checkpoints" />
<exclude name="**/*.mps" />
</fileset>
<zipfileset file="${webmps.modules}/org.modelix.build/org.modelix.build.msd" prefix="module" />
<zipfileset dir="${build.tmp}/customProcessors/copyModels/org.modelix.build-models" prefix="module/models" />
</jar>
<zip destfile="${build.layout}/org.modelix.zip">
<fileset dir="${build.tmp}/default/org.modelix.zip" />
</zip>
<echo file="${build.layout}/build.properties">mps.build.number=${mps.build.number}${line.separator}mps.date=${mps.date}${line.separator}mps.build.vcs.number=${mps.build.vcs.number}${line.separator}mps.teamcity.buildConfName=${mps.teamcity.buildConfName}${line.separator}mps.idea.platform.build.number=${mps.idea.platform.build.number}${line.separator}mps.mps.build.counter=${mps.mps.build.counter}${line.separator}mpsBootstrapCore.version=${mpsBootstrapCore.version}${line.separator}de.itemis.mps.extensions.versionNumber=${de.itemis.mps.extensions.versionNumber}</echo>
</target>
<target name="buildDependents" />
<target name="fetchDependencies" />
<target name="build" depends="assemble" />
<target name="clean">
<delete dir="${build.tmp}" />
<delete dir="${build.layout}" />
</target>
<target name="compileJava" depends="java.compile.org.modelix.build" />
<target name="processResources" />
<target name="classes" depends="compileJava, processResources" />
<target name="test" depends="classes" />
<target name="check" depends="test" />
<target name="generate" depends="declare-mps-tasks, fetchDependencies">
<echo message="generating" />
<generate strictMode="true" parallelMode="true" parallelThreads="8" useInplaceTransform="false" hideWarnings="false" createStaticRefs="true" fork="true" skipUnmodifiedModels="${mps.generator.skipUnmodifiedModels}">
<plugin path="${artifacts.de.itemis.mps.extensions}/de.itemis.mps.extensions.build" />
<plugin path="${artifacts.mps}/plugins/mps-build" />
<plugin path="${artifacts.mps}/plugins/mps-core" />
<library file="${artifacts.de.itemis.mps.extensions}/de.itemis.mps.extensions.build/languages/de.itemis.mps.extensions.build/de.itemis.mps.extensions.build.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/closures.runtime.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/collections.runtime.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.blTypes.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.classifiers.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.closures.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.collections.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.javadoc.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.jdk7.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.jdk8.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.references.runtime.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.regexp.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.regexp.runtime.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.scopes.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.tuples.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.tuples.runtime.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguageInternal.jar" />
<library file="${artifacts.mps}/languages/editor/jetbrains.mps.editor.runtime.jar" />
<library file="${artifacts.mps}/languages/editor/jetbrains.mps.editorlang.runtime.jar" />
<library file="${artifacts.mps}/languages/editor/jetbrains.mps.ide.editor.jar" />
<library file="${artifacts.mps}/languages/editor/typesystemIntegration.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.baseLanguage.lightweightdsl.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.actions.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.behavior.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.checkedName.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.constraints.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.core.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.dataFlow.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.editor.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.findUsages.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.generator.generationContext.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.generator.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.intentions.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.migration.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.modelapi.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.pattern.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.plugin.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.project.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.quotation.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.refactoring.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.resources.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.scopes.runtime.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.script.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.sharedConcepts.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.smodel.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.smodel.query.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.structure.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.textGen.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.traceable.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.lang.typesystem.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.refactoring.participant.jar" />
<library file="${artifacts.mps}/languages/languageDesign/jetbrains.mps.typesystemEngine.jar" />
<library file="${artifacts.mps}/languages/make/jetbrains.mps.make.facets.jar" />
<library file="${artifacts.mps}/languages/make/jetbrains.mps.make.jar" />
<library file="${artifacts.mps}/languages/make/jetbrains.mps.make.runtime.jar" />
<library file="${artifacts.mps}/languages/make/jetbrains.mps.smodel.resources.jar" />
<library file="${artifacts.mps}/languages/mps-stubs.jar" />
<library file="${artifacts.mps}/languages/plaf/jetbrains.mps.baseLanguage.search.jar" />
<library file="${artifacts.mps}/languages/plaf/jetbrains.mps.baseLanguage.util.jar" />
<library file="${artifacts.mps}/languages/plaf/jetbrains.mps.ide.platform.jar" />
<library file="${artifacts.mps}/languages/plaf/jetbrains.mps.ide.refactoring.platform.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.analyzers.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.dataFlow.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.findUsages.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.behavior.api.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.feedback.context.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.migration.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.smodel.query.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.refactoring.runtime.jar" />
<library file="${artifacts.mps}/languages/text/jetbrains.mps.lang.text.jar" />
<library file="${artifacts.mps}/languages/tools/jetbrains.mps.core.tool.environment.jar" />
<library file="${artifacts.mps}/languages/tools/jetbrains.mps.tool.common.jar" />
<library file="${artifacts.mps}/languages/util/jetbrains.mps.java.stub.jar" />
<library file="${artifacts.mps}/languages/util/jetbrains.mps.kernel.jar" />
<library file="${artifacts.mps}/languages/util/jetbrains.mps.lang.makeup.jar" />
<library file="${artifacts.mps}/languages/util/jetbrains.mps.project.jar" />
<library file="${artifacts.mps}/languages/util/jetbrains.mps.refactoring.jar" />
<library file="${artifacts.mps}/languages/util/jetbrains.mps.runtime.jar" />
<library file="${artifacts.mps}/languages/xml/jetbrains.mps.core.xml.jar" />
<library file="${artifacts.mps}/plugins/mps-build/languages/build/jetbrains.mps.build.jar" />
<library file="${artifacts.mps}/plugins/mps-build/languages/build/jetbrains.mps.build.mps.jar" />
<library file="${artifacts.mps}/plugins/mps-build/languages/build/jetbrains.mps.build.workflow.jar" />
<library file="${artifacts.mps}/plugins/mps-build/languages/build/jetbrains.mps.build.workflow.preset.jar" />
<library file="${artifacts.mps}/plugins/mps-build/languages/build/jetbrains.mps.ide.build.jar" />
<chunk>
<module file="${webmps.modules}/org.modelix.build/org.modelix.build.msd" />
</chunk>
<jvmargs>
<arg value="-ea" />
<arg value="-Xmx512m" />
</jvmargs>
<macro name="webmps.home" path="${webmps.home}" />
<macro name="mps.home" path="${mps.home}" />
<macro name="mps_home" path="${mps_home}" />
<macro name="artifacts.root" path="${artifacts.root}" />
<macro name="extensions.artifacts" path="${extensions.artifacts}" />
<macro name="webmps.modules" path="${webmps.modules}" />
</generate>
</target>
<target name="declare-mps-tasks">
<taskdef resource="jetbrains/mps/build/ant/antlib.xml" classpathref="path.mps.ant.path" />
</target>
<target name="makeDependents" />
<target name="java.compile.org.modelix.build" depends="fetchDependencies">
<mkdir dir="${webmps.modules}/org.modelix.build/source_gen" />
<mkdir dir="${build.tmp}/java/out/org.modelix.build" />
<javac destdir="${build.tmp}/java/out/org.modelix.build" fork="true" encoding="utf8" includeantruntime="false" debug="true">
<compilerarg value="-Xlint:none" />
<src>
<path location="${webmps.modules}/org.modelix.build/source_gen" />
</src>
<classpath>
<fileset file="${artifacts.de.itemis.mps.extensions}/de.itemis.mps.extensions.build/languages/de.itemis.mps.extensions.build/de.itemis.mps.extensions.build.jar" />
</classpath>
</javac>
</target>
<target name="cleanSources">
<delete dir="${webmps.modules}/org.modelix.build/source_gen" />
</target>
</project>