forked from CampagneLaboratory/NYoSh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildDistribution.xml
155 lines (150 loc) · 13.9 KB
/
buildDistribution.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
<project name="NYoShDistribution" default="build">
<!-- Generated by MPS -->
<property name="build.dir" location="build" />
<property name="build.tmp" location="${build.dir}/tmp/NYoShDistribution" />
<property name="build.layout" location="${build.dir}/artifacts/NYoShDistribution" />
<property name="mps_home" location="${basedir}/../../../../../../Applications/MPS_3.2_RC1" />
<property name="version" value="2.0_EAP" />
<property name="build.number" value="${NYoSh.nyosh_build_number}" />
<property name="artifacts.NYoSh" location="${build.dir}/artifacts/NYoSh" />
<property file="${artifacts.NYoSh}/build.properties" prefix="import.NYoSh" />
<property name="NYoSh.date" value="${import.NYoSh.NYoSh.date}" />
<property name="NYoSh.nyosh_build_number" value="${import.NYoSh.NYoSh.nyosh_build_number}" />
<property name="NYoSh.version" value="${import.NYoSh.NYoSh.version}" />
<property name="mpsBootstrapCore.version" value="${import.NYoSh.mpsBootstrapCore.version}" />
<property name="mps.build.number" value="${import.NYoSh.mps.build.number}" />
<property name="mps.date" value="${import.NYoSh.mps.date}" />
<property name="mps.build.vcs.number" value="${import.NYoSh.mps.build.vcs.number}" />
<property name="mps.teamcity.buildConfName" value="${import.NYoSh.mps.teamcity.buildConfName}" />
<property name="mps.idea.platform.build.number" value="${import.NYoSh.mps.idea.platform.build.number}" />
<property name="XChart.build_number" value="${import.NYoSh.XChart.build_number}" />
<property name="XChart.reference_commit" value="${import.NYoSh.XChart.reference_commit}" />
<property name="XChart.reference_branch" value="${import.NYoSh.XChart.reference_branch}" />
<property name="XChart.XChart_version" value="${import.NYoSh.XChart.XChart_version}" />
<property name="org.campagnelab.Background.background_version" value="${import.NYoSh.org.campagnelab.Background.background_version}" />
<property name="org.campagnelab.Background.build_number" value="${import.NYoSh.org.campagnelab.Background.build_number}" />
<property name="org.campagnelab.mps.UI.ui_version" value="${import.NYoSh.org.campagnelab.mps.UI.ui_version}" />
<property name="org.campagnelab.mps.UI.build_number" value="${import.NYoSh.org.campagnelab.mps.UI.build_number}" />
<property name="org.campagnelab.TextOutput.build_number" value="${import.NYoSh.org.campagnelab.TextOutput.build_number}" />
<property name="org.campagnelab.TextOutput.textoutput_version" value="${import.NYoSh.org.campagnelab.TextOutput.textoutput_version}" />
<property name="org.campagnelab.Logger.logger.version" value="${import.NYoSh.org.campagnelab.Logger.logger.version}" />
<property name="org.campagnelab.Logger.build_number" value="${import.NYoSh.org.campagnelab.Logger.build_number}" />
<property name="org.campagnelab.ClusterConfig.clusterConfig_version" value="${import.NYoSh.org.campagnelab.ClusterConfig.clusterConfig_version}" />
<property name="org.campagnelab.ClusterConfig.build_number" value="${import.NYoSh.org.campagnelab.ClusterConfig.build_number}" />
<property name="org.campagnelab.GobyWeb.build_number" value="${import.NYoSh.org.campagnelab.GobyWeb.build_number}" />
<property name="org.campagnelab.GobyWeb.gobyweb_version" value="${import.NYoSh.org.campagnelab.GobyWeb.gobyweb_version}" />
<property name="org.campagnelab.NYoSh.nyosh_version" value="${import.NYoSh.org.campagnelab.NYoSh.nyosh_version}" />
<property name="org.campagnelab.NYoSh.build_number" value="${import.NYoSh.org.campagnelab.NYoSh.build_number}" />
<property name="org.campagnelab.Interactive.interactive_version" value="${import.NYoSh.org.campagnelab.Interactive.interactive_version}" />
<property name="org.campagnelab.Interactive.build_number" value="${import.NYoSh.org.campagnelab.Interactive.build_number}" />
<target name="assemble" depends="fetchDependencies">
<mkdir dir="${build.layout}" />
<mkdir dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-linux.tar.gz" />
<mkdir dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-linux.tar.gz/NYoSh ${version}" />
<mkdir dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-linux.tar.gz/NYoSh ${version}/bin" />
<copy todir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-linux.tar.gz/NYoSh ${version}/bin">
<fileset file="${mps_home}/bin/mps.vmoptions" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<mkdir dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-linux.tar.gz_f755" />
<copy todir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-linux.tar.gz_f755">
<fileset file="${mps_home}/mps.sh" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<tar destfile="${build.layout}/${NYoSh.nyosh_build_number}-linux.tar.gz" compression="gzip" longfile="gnu">
<tarfileset dir="${artifacts.NYoSh}" prefix="NYoSh ${version}" />
<tarfileset dir="${mps_home}/bin/linux" prefix="NYoSh ${version}/bin">
<exclude name="**/fsnotifier" />
<exclude name="**/fsnotifier64" />
</tarfileset>
<tarfileset file="${mps_home}/bin/linux/fsnotifier" prefix="NYoSh ${version}/bin" filemode="755" />
<tarfileset file="${mps_home}/bin/linux/fsnotifier64" prefix="NYoSh ${version}/bin" filemode="755" />
<tarfileset dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-linux.tar.gz_f755" filemode="755" prefix="NYoSh ${version}" />
<tarfileset dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-linux.tar.gz" />
</tar>
<zip destfile="${build.layout}/${NYoSh.nyosh_build_number}.zip">
<zipfileset dir="${artifacts.NYoSh}" prefix="NYoSh ${version}" />
<zipfileset file="${mps_home}/bin/mps.vmoptions" prefix="NYoSh ${version}/bin" />
<zipfileset file="${mps_home}/bin/mps.exe.vmoptions" prefix="NYoSh ${version}/bin" />
<zipfileset dir="${mps_home}/bin/win" prefix="NYoSh ${version}/bin/win">
<exclude name="**/*.exe" />
</zipfileset>
<zipfileset dir="${mps_home}/bin/win" prefix="NYoSh ${version}/bin/win" filemode="755">
<include name="**/*.exe" />
</zipfileset>
<zipfileset dir="${mps_home}/bin/linux" prefix="NYoSh ${version}/bin/linux">
<exclude name="**/fsnotifier" />
<exclude name="**/fsnotifier64" />
</zipfileset>
<zipfileset file="${mps_home}/bin/linux/fsnotifier" prefix="NYoSh ${version}/bin/linux" filemode="755" />
<zipfileset file="${mps_home}/bin/linux/fsnotifier64" prefix="NYoSh ${version}/bin/linux" filemode="755" />
<zipfileset dir="${mps_home}/bin/nix" prefix="NYoSh ${version}/bin/nix" filemode="755" />
<zipfileset file="${mps_home}/bin/mac/info_plist_parser.scpt" prefix="NYoSh ${version}/bin/mac" />
<zipfileset file="${mps_home}/bin/mac/libbreakgen.jnilib" prefix="NYoSh ${version}/bin/mac" />
<zipfileset file="${mps_home}/bin/mac/libbreakgen64.jnilib" prefix="NYoSh ${version}/bin/mac" />
<zipfileset file="${mps_home}/bin/mac/libquaqua.jnilib" prefix="NYoSh ${version}/bin/mac" />
<zipfileset file="${mps_home}/bin/mac/libquaqua64.jnilib" prefix="NYoSh ${version}/bin/mac" />
<zipfileset file="${mps_home}/bin/mac/restarter" prefix="NYoSh ${version}/bin/mac" filemode="755" />
<zipfileset file="${mps_home}/bin/mac/fsnotifier" prefix="NYoSh ${version}/bin/mac" filemode="755" />
<zipfileset file="${mps_home}/bin/mac/Contents/Info.plist" prefix="NYoSh ${version}/bin/mac/Contents" />
<zipfileset file="${mps_home}/bin/mac/Contents/Resources/mps.icns" prefix="NYoSh ${version}/bin/mac/Contents/Resources" />
<zipfileset file="${mps_home}/bin/mac/Contents/MacOS/mps" prefix="NYoSh ${version}/bin/mac/Contents/MacOS" filemode="755" />
<zipfileset file="${mps_home}/mps.sh" prefix="NYoSh ${version}" filemode="755" />
<zipfileset file="${mps_home}/mps.bat" prefix="NYoSh ${version}" filemode="755" />
</zip>
<mkdir dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-macos.zip" />
<mkdir dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-macos.zip/NYoSh ${version}.app" />
<mkdir dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-macos.zip/NYoSh ${version}.app/Contents" />
<mkdir dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-macos.zip_f755" />
<copy todir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-macos.zip_f755">
<fileset file="${mps_home}/mps.sh" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<mkdir dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-macos.zip/NYoSh ${version}.app/Contents/bin" />
<copy todir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-macos.zip/NYoSh ${version}.app/Contents/bin">
<fileset file="${mps_home}/bin/mps.vmoptions" />
<filterchain>
<fixcrlf eol="lf" eof="remove" />
</filterchain>
</copy>
<zip destfile="${build.layout}/${NYoSh.nyosh_build_number}-macos.zip">
<zipfileset dir="${artifacts.NYoSh}" prefix="NYoSh ${version}.app/Contents" />
<zipfileset file="${mps_home}/bin/mac/Contents/Info.plist" prefix="NYoSh ${version}.app/Contents" />
<zipfileset file="${mps_home}/bin/mac/info_plist_parser.scpt" prefix="NYoSh ${version}.app/Contents/bin" />
<zipfileset file="${mps_home}/bin/mac/libbreakgen.jnilib" prefix="NYoSh ${version}.app/Contents/bin" />
<zipfileset file="${mps_home}/bin/mac/libbreakgen64.jnilib" prefix="NYoSh ${version}.app/Contents/bin" />
<zipfileset file="${mps_home}/bin/mac/libquaqua.jnilib" prefix="NYoSh ${version}.app/Contents/bin" />
<zipfileset file="${mps_home}/bin/mac/libquaqua64.jnilib" prefix="NYoSh ${version}.app/Contents/bin" />
<zipfileset file="${mps_home}/bin/mac/restarter" prefix="NYoSh ${version}.app/Contents/bin" filemode="755" />
<zipfileset file="${mps_home}/bin/mac/fsnotifier" prefix="NYoSh ${version}.app/Contents/bin" filemode="755" />
<zipfileset file="${mps_home}/bin/mac/Contents/Resources/mps.icns" prefix="NYoSh ${version}.app/Contents/Resources" />
<zipfileset file="${mps_home}/bin/mac/Contents/MacOS/mps" prefix="NYoSh ${version}.app/Contents/MacOS" filemode="755" />
<zipfileset dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-macos.zip_f755" filemode="755" prefix="NYoSh ${version}.app/Contents" />
<fileset dir="${build.tmp}/default/_dl__lbrace_nyosh_build_number_rbrace_-macos.zip" />
</zip>
<echo file="${build.layout}/build.properties">NYoShDistribution.version=${version}${line.separator}NYoShDistribution.build.number=${build.number}${line.separator}NYoSh.date=${NYoSh.date}${line.separator}NYoSh.nyosh_build_number=${NYoSh.nyosh_build_number}${line.separator}NYoSh.version=${NYoSh.version}${line.separator}mpsBootstrapCore.version=${mpsBootstrapCore.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}XChart.build_number=${XChart.build_number}${line.separator}XChart.reference_commit=${XChart.reference_commit}${line.separator}XChart.reference_branch=${XChart.reference_branch}${line.separator}XChart.XChart_version=${XChart.XChart_version}${line.separator}org.campagnelab.Background.background_version=${org.campagnelab.Background.background_version}${line.separator}org.campagnelab.Background.build_number=${org.campagnelab.Background.build_number}${line.separator}org.campagnelab.mps.UI.ui_version=${org.campagnelab.mps.UI.ui_version}${line.separator}org.campagnelab.mps.UI.build_number=${org.campagnelab.mps.UI.build_number}${line.separator}org.campagnelab.TextOutput.build_number=${org.campagnelab.TextOutput.build_number}${line.separator}org.campagnelab.TextOutput.textoutput_version=${org.campagnelab.TextOutput.textoutput_version}${line.separator}org.campagnelab.Logger.logger.version=${org.campagnelab.Logger.logger.version}${line.separator}org.campagnelab.Logger.build_number=${org.campagnelab.Logger.build_number}${line.separator}org.campagnelab.ClusterConfig.clusterConfig_version=${org.campagnelab.ClusterConfig.clusterConfig_version}${line.separator}org.campagnelab.ClusterConfig.build_number=${org.campagnelab.ClusterConfig.build_number}${line.separator}org.campagnelab.GobyWeb.build_number=${org.campagnelab.GobyWeb.build_number}${line.separator}org.campagnelab.GobyWeb.gobyweb_version=${org.campagnelab.GobyWeb.gobyweb_version}${line.separator}org.campagnelab.NYoSh.nyosh_version=${org.campagnelab.NYoSh.nyosh_version}${line.separator}org.campagnelab.NYoSh.build_number=${org.campagnelab.NYoSh.build_number}${line.separator}org.campagnelab.Interactive.interactive_version=${org.campagnelab.Interactive.interactive_version}${line.separator}org.campagnelab.Interactive.build_number=${org.campagnelab.Interactive.build_number}</echo>
</target>
<target name="buildDependents">
<ant antfile="background.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="ui.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="TextOutput.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="logger.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="ClusterConfig.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="GobyWeb.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="Interactive.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="NYoSh.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="build.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>