-
Notifications
You must be signed in to change notification settings - Fork 4
/
build-ide.xml
151 lines (146 loc) · 12.9 KB
/
build-ide.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
<project name="de.citec.json-ide" default="build">
<!-- Generated by MPS -->
<property name="build.dir" location="build" />
<property name="build.tmp" location="${build.dir}/tmp/de.citec.json-ide" />
<property name="build.layout" location="${build.dir}/artifacts/de.citec.json-ide" />
<property name="path__mps" location="" />
<property name="current_version" value="1.0.1" />
<property name="artifacts.de.citec.json-mps" location="${build.dir}/artifacts/de.citec.json-mps" />
<property file="${artifacts.de.citec.json-mps}/build.properties" prefix="import.de.citec.json-mps" />
<property name="de.citec.json-mps.current_version" value="${import.de.citec.json-mps.de.citec.json-mps.current_version}" />
<property name="mps.build.number" value="${import.de.citec.json-mps.mps.build.number}" />
<property name="mps.date" value="${import.de.citec.json-mps.mps.date}" />
<property name="mps.build.vcs.number" value="${import.de.citec.json-mps.mps.build.vcs.number}" />
<property name="mps.teamcity.buildConfName" value="${import.de.citec.json-mps.mps.teamcity.buildConfName}" />
<property name="mps.idea.platform.build.number" value="${import.de.citec.json-mps.mps.idea.platform.build.number}" />
<property name="mps.mps.build.counter" value="${import.de.citec.json-mps.mps.mps.build.counter}" />
<property name="mpsBootstrapCore.version" value="${import.de.citec.json-mps.mpsBootstrapCore.version}" />
<target name="assemble" depends="fetchDependencies">
<mkdir dir="${build.layout}" />
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-linux.tar.gz" />
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-linux.tar.gz/de.citec.json-${current_version}-ide-linux" />
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-linux.tar.gz/de.citec.json-${current_version}-ide-linux/bin" />
<copy todir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-linux.tar.gz/de.citec.json-${current_version}-ide-linux/bin">
<fileset file="${path__mps}/bin/mps.vmoptions" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<copy todir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-linux.tar.gz/de.citec.json-${current_version}-ide-linux/bin">
<fileset file="${path__mps}/bin/mps64.vmoptions" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-linux.tar.gz_f755" />
<copy todir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-linux.tar.gz_f755">
<fileset file="${path__mps}/bin/mps.sh" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<tar destfile="${build.layout}/de.citec.json-${current_version}-ide-${mps.build.number}-linux.tar.gz" compression="gzip" longfile="gnu">
<tarfileset dir="${artifacts.de.citec.json-mps}" prefix="de.citec.json-${current_version}-ide-linux" />
<tarfileset dir="${path__mps}/bin/linux" prefix="de.citec.json-${current_version}-ide-linux/bin">
<exclude name="**/fsnotifier" />
<exclude name="**/fsnotifier64" />
</tarfileset>
<tarfileset file="${path__mps}/bin/linux/fsnotifier" prefix="de.citec.json-${current_version}-ide-linux/bin" filemode="755" />
<tarfileset file="${path__mps}/bin/linux/fsnotifier64" prefix="de.citec.json-${current_version}-ide-linux/bin" filemode="755" />
<tarfileset dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-linux.tar.gz_f755" filemode="755" prefix="de.citec.json-${current_version}-ide-linux/bin" />
<tarfileset dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-linux.tar.gz" />
</tar>
<zip destfile="${build.layout}/de.citec.json-${current_version}-ide-${mps.build.number}-win.zip">
<zipfileset dir="${artifacts.de.citec.json-mps}" prefix="de.citec.json-${current_version}-ide-win" />
<zipfileset file="${path__mps}/bin/mps.vmoptions" prefix="de.citec.json-${current_version}-ide-win/bin" />
<zipfileset file="${path__mps}/bin/mps.exe.vmoptions" prefix="de.citec.json-${current_version}-ide-win/bin" />
<zipfileset file="${path__mps}/bin/mps64.vmoptions" prefix="de.citec.json-${current_version}-ide-win/bin" />
<zipfileset file="${path__mps}/bin/mps64.exe.vmoptions" prefix="de.citec.json-${current_version}-ide-win/bin" />
<zipfileset dir="${path__mps}/bin/win" prefix="de.citec.json-${current_version}-ide-win/bin/win">
<exclude name="**/*.exe" />
</zipfileset>
<zipfileset dir="${path__mps}/bin/win" prefix="de.citec.json-${current_version}-ide-win/bin/win" filemode="755">
<include name="**/*.exe" />
</zipfileset>
<zipfileset dir="${path__mps}/bin/linux" prefix="de.citec.json-${current_version}-ide-win/bin/linux">
<exclude name="**/fsnotifier" />
<exclude name="**/fsnotifier64" />
</zipfileset>
<zipfileset file="${path__mps}/bin/linux/fsnotifier" prefix="de.citec.json-${current_version}-ide-win/bin/linux" filemode="755" />
<zipfileset file="${path__mps}/bin/linux/fsnotifier64" prefix="de.citec.json-${current_version}-ide-win/bin/linux" filemode="755" />
<zipfileset file="${path__mps}/bin/mac/libbreakgen.jnilib" prefix="de.citec.json-${current_version}-ide-win/bin/mac" />
<zipfileset file="${path__mps}/bin/mac/libbreakgen64.jnilib" prefix="de.citec.json-${current_version}-ide-win/bin/mac" />
<zipfileset file="${path__mps}/bin/mac/restarter" prefix="de.citec.json-${current_version}-ide-win/bin/mac" filemode="755" />
<zipfileset file="${path__mps}/bin/mac/fsnotifier" prefix="de.citec.json-${current_version}-ide-win/bin/mac" filemode="755" />
<zipfileset file="${path__mps}/bin/mac/printenv.py" prefix="de.citec.json-${current_version}-ide-win/bin/mac" filemode="755" />
<zipfileset file="${path__mps}/bin/mac/Contents/Info.plist" prefix="de.citec.json-${current_version}-ide-win/bin/mac/Contents" />
<zipfileset file="${path__mps}/bin/mac/Contents/Resources/mps.icns" prefix="de.citec.json-${current_version}-ide-win/bin/mac/Contents/Resources" />
<zipfileset file="${path__mps}/bin/mac/Contents/MacOS/mps" prefix="de.citec.json-${current_version}-ide-win/bin/mac/Contents/MacOS" filemode="755" />
<zipfileset file="${path__mps}/bin/mac/Contents/MacOS/idea_appLauncher" prefix="de.citec.json-${current_version}-ide-win/bin/mac/Contents/MacOS" filemode="644" />
<zipfileset file="${path__mps}/mps.sh" prefix="de.citec.json-${current_version}-ide-win" filemode="755" />
<zipfileset file="${path__mps}/mps.bat" prefix="de.citec.json-${current_version}-ide-win" filemode="755" />
</zip>
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip" />
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip/de.citec.json-${current_version}-ide-macos.app" />
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip/de.citec.json-${current_version}-ide-macos.app/Contents" />
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip/de.citec.json-${current_version}-ide-macos.app/Contents/bin" />
<copy todir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip/de.citec.json-${current_version}-ide-macos.app/Contents/bin">
<fileset file="${path__mps}/bin/mps.vmoptions" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<copy todir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip/de.citec.json-${current_version}-ide-macos.app/Contents/bin">
<fileset file="${path__mps}/bin/mps64.vmoptions" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip_f7551" />
<copy todir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip_f7551">
<fileset file="${path__mps}/bin/mac/printenv.py" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip_f7552" />
<copy todir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip_f7552">
<fileset file="${path__mps}/bin/mps.sh" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<mkdir dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip_f755" />
<copy todir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip_f755">
<fileset file="${path__mps}/mps.sh" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<zip destfile="${build.layout}/de.citec.json-${current_version}-ide-${mps.build.number}-macos.zip">
<zipfileset dir="${artifacts.de.citec.json-mps}" prefix="de.citec.json-${current_version}-ide-macos.app/Contents" />
<zipfileset file="${path__mps}/bin/mac/Contents/Info.plist" prefix="de.citec.json-${current_version}-ide-macos.app/Contents" />
<zipfileset file="${path__mps}/bin/mac/Contents/Resources/mps.icns" prefix="de.citec.json-${current_version}-ide-macos.app/Contents/Resources" />
<zipfileset file="${path__mps}/bin/mac/Contents/MacOS/mps" prefix="de.citec.json-${current_version}-ide-macos.app/Contents/MacOS" filemode="755" />
<zipfileset file="${path__mps}/bin/mac/Contents/MacOS/idea_appLauncher" prefix="de.citec.json-${current_version}-ide-macos.app/Contents/MacOS" filemode="644" />
<zipfileset file="${path__mps}/bin/mac/libbreakgen.jnilib" prefix="de.citec.json-${current_version}-ide-macos.app/Contents/bin" />
<zipfileset file="${path__mps}/bin/mac/libbreakgen64.jnilib" prefix="de.citec.json-${current_version}-ide-macos.app/Contents/bin" />
<zipfileset file="${path__mps}/bin/mac/restarter" prefix="de.citec.json-${current_version}-ide-macos.app/Contents/bin" filemode="755" />
<zipfileset file="${path__mps}/bin/mac/fsnotifier" prefix="de.citec.json-${current_version}-ide-macos.app/Contents/bin" filemode="755" />
<zipfileset dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip_f755" filemode="755" prefix="de.citec.json-${current_version}-ide-macos.app/Contents" />
<zipfileset dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip_f7551" filemode="755" prefix="de.citec.json-${current_version}-ide-macos.app/Contents/bin" />
<zipfileset dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip_f7552" filemode="755" prefix="de.citec.json-${current_version}-ide-macos.app/Contents/bin" />
<fileset dir="${build.tmp}/default/de.citec.json-_dl__lbrace_current_version_rbrace_-ide-_dl__lbrace_build.number_rbrace_-macos.zip" />
</zip>
<echo file="${build.layout}/build.properties">de.citec.json-ide.current_version=${current_version}${line.separator}de.citec.json-mps.current_version=${de.citec.json-mps.current_version}${line.separator}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}</echo>
</target>
<target name="buildDependents">
<ant antfile="build-plugin-mps.xml" inheritAll="false" useNativeBasedir="true" />
</target>
<target name="fetchDependencies" />
<target name="build" depends="assemble" />
<target name="clean">
<delete dir="${build.tmp}" />
<delete dir="${build.layout}" />
</target>
</project>