Lines 12-18
Link Here
|
12 |
Portions Copyright 1997-2003 Sun Microsystems, Inc. All Rights Reserved. |
12 |
Portions Copyright 1997-2003 Sun Microsystems, Inc. All Rights Reserved. |
13 |
--> |
13 |
--> |
14 |
|
14 |
|
15 |
<project basedir="." default="buildide" name="translatedfiles"> |
15 |
<project basedir="." default="all" name="translatedfiles"> |
16 |
<property name="homepage.base" value="netbeans.org"/> |
16 |
<property name="homepage.base" value="netbeans.org"/> |
17 |
<property name="dist.base" value="www.netbeans.org/download/nbms/40"/> |
17 |
<property name="dist.base" value="www.netbeans.org/download/nbms/40"/> |
18 |
|
18 |
|
Lines 25-66
Link Here
|
25 |
<property name="locjhindexer.locales" value="${locales}"/> |
25 |
<property name="locjhindexer.locales" value="${locales}"/> |
26 |
|
26 |
|
27 |
<property name="netbeans.dest" value="netbeans"/> |
27 |
<property name="netbeans.dest" value="netbeans"/> |
28 |
<property name="aumoduleconfig" value="stable-au-ML"/> |
28 |
<property name="aumoduleconfig" value="stable-au"/> |
29 |
<property name="idemoduleconfig" value="stable"/> |
29 |
<property name="idemoduleconfig" value="stable"/> |
|
|
30 |
<property name="netbeans.japanese" value="true"/> |
31 |
<property name="netbeans.chinese" value="true"/> |
32 |
<property name="netbeans.russian" value="false"/> |
33 |
<property name="netbeans.french" value="false"/> |
34 |
|
35 |
<target name="init" depends="set-buildnumber"/> |
36 |
|
37 |
<target name="set-buildnumber" unless="buildnumber"> |
38 |
<tstamp> |
39 |
<format property="buildnumber" pattern="yyyyMMddhhmm" /> |
40 |
</tstamp> |
41 |
<echo>buildnumber is ${buildnumber} |
42 |
</echo> |
43 |
</target> |
44 |
|
45 |
<target name="all"> |
46 |
<ant dir="." target="buildide"/> |
47 |
<ant dir="." target="buildnbms"/> |
48 |
</target> |
49 |
|
50 |
<target name="check-ru" if="netbeans.russian"> |
51 |
<property name="netbeans.localized" value="true"/> |
52 |
</target> |
30 |
|
53 |
|
31 |
<target name="makelocjars"> |
54 |
<target name="check-fr" if="netbeans.french"> |
|
|
55 |
<property name="netbeans.localized" value="true"/> |
56 |
</target> |
57 |
|
58 |
<target name="check-localized" depends="check-ja-zh,check-ru,check-fr"/> |
59 |
|
60 |
<target name="makelocjars" depends="check-localized" if="netbeans.localized"> |
32 |
<echo message="Building all localized jars"/> |
61 |
<echo message="Building all localized jars"/> |
33 |
<ant dir="${nbroot}/translatedfiles"/> |
62 |
<ant dir="${nbroot}/translatedfiles"/> |
34 |
</target> |
63 |
</target> |
35 |
|
64 |
|
36 |
<target name="copylocalized" depends="makelocjars"> |
65 |
<target name="copylocalized-ja-zh" depends="check-ja-zh" if="netbeans.ja-zh"> |
|
|
66 |
<antcall target="copylocalized-ja"/> |
67 |
<antcall target="copylocalized-zh"/> |
68 |
</target> |
69 |
|
70 |
<target name="copylocalized-ja" depends="makelocjars" if="netbeans.japanese" > |
37 |
<copy todir="${nbroot}"> |
71 |
<copy todir="${nbroot}"> |
38 |
<fileset dir="${nbroot}/translatedfiles/nb"> |
72 |
<fileset dir="${nbroot}/translatedfiles/nb"> |
39 |
<include name="**/*_ja.*"/> |
73 |
<include name="**/*_ja.*"/> |
40 |
<!-- <include name="**/*_zh.*"/> |
|
|
41 |
<include name="**/*_zh_TW.*"/>--> |
42 |
</fileset> |
74 |
</fileset> |
43 |
</copy> |
75 |
</copy> |
44 |
</target> |
76 |
</target> |
45 |
|
77 |
|
46 |
<target name="buildide" depends="copylocalized"> |
78 |
<target name="copylocalized-zh" depends="makelocjars" if="netbeans.chinese" > |
47 |
<ant dir=".." target="build-nozip"> |
79 |
<copy todir="${nbroot}"> |
48 |
<property name="netbeans.japanese" value="true"/> |
80 |
<fileset dir="${nbroot}/translatedfiles/nb"> |
|
|
81 |
<include name="**/*_zh.*"/> |
82 |
<include name="**/*_zh_TW.*"/> |
83 |
</fileset> |
84 |
</copy> |
85 |
</target> |
86 |
|
87 |
<target name="copylocalized-ru" depends="makelocjars" if="netbeans.russian" > |
88 |
<copy todir="${nbroot}"> |
89 |
<fileset dir="${nbroot}/translatedfiles/nb"> |
90 |
<include name="**/*_ru.*"/> |
91 |
</fileset> |
92 |
</copy> |
93 |
</target> |
94 |
|
95 |
<target name="copylocalized-fr" depends="makelocjars" if="netbeans.french" > |
96 |
<copy todir="${nbroot}"> |
97 |
<fileset dir="${nbroot}/translatedfiles/nb"> |
98 |
<include name="**/*_fr.*"/> |
99 |
</fileset> |
100 |
</copy> |
101 |
</target> |
102 |
|
103 |
<target name="buildide" depends="init"> |
104 |
<antcall target="buildide-ja-zh"/> |
105 |
<antcall target="buildide-ru"/> |
106 |
<antcall target="buildide-fr"/> |
107 |
<antcall target="clean"/> |
108 |
</target> |
109 |
|
110 |
<target name="buildnbms" depends="init"> |
111 |
<antcall target="buildnbms-ja-zh"/> |
112 |
<antcall target="buildnbms-ru"/> |
113 |
<antcall target="buildnbms-fr"/> |
114 |
<antcall target="clean"/> |
115 |
</target> |
116 |
|
117 |
<target name="check-ja" if="netbeans.japanese"> |
118 |
<property name="netbeans.ja-zh" value="true"/> |
119 |
<property name="netbeans.localized" value="true"/> |
120 |
</target> |
121 |
|
122 |
<target name="check-zh" if="netbeans.chinese"> |
123 |
<property name="netbeans.ja-zh" value="true"/> |
124 |
<property name="netbeans.localized" value="true"/> |
125 |
</target> |
126 |
|
127 |
<target name="check-ja-zh" depends="check-ja,check-zh"/> |
128 |
|
129 |
<target name="buildide-ja-zh" depends="check-ja-zh" if="netbeans.ja-zh"> |
130 |
<antcall target="clean"/> |
131 |
<antcall target="copylocalized-ja-zh"/> |
132 |
<ant dir=".." target="build"> |
133 |
<property name="moduleconfig" value="${idemoduleconfig}"/> |
134 |
</ant> |
135 |
<copy file="../NetBeans-release35-${buildnumber}.zip" |
136 |
tofile="NetBeansIDE-release35-${buildnumber}-ML.zip" /> |
137 |
<delete file="../NetBeans-release35-${buildnumber}.zip" /> |
138 |
</target> |
139 |
|
140 |
<target name="buildide-ru" if="netbeans.russian"> |
141 |
<antcall target="clean"/> |
142 |
<antcall target="copylocalized-ru"/> |
143 |
<ant dir=".." target="build"> |
144 |
<property name="moduleconfig" value="${idemoduleconfig}"/> |
145 |
</ant> |
146 |
<copy file="../NetBeans-release35-${buildnumber}.zip" |
147 |
tofile="NetBeansIDE-release35-${buildnumber}-ML-RU.zip" /> |
148 |
<delete file="../NetBeans-release35-${buildnumber}.zip" /> |
149 |
</target> |
150 |
|
151 |
<target name="buildide-fr" if="netbeans.french"> |
152 |
<antcall target="clean"/> |
153 |
<antcall target="copylocalized-fr"/> |
154 |
<ant dir=".." target="build"> |
49 |
<property name="moduleconfig" value="${idemoduleconfig}"/> |
155 |
<property name="moduleconfig" value="${idemoduleconfig}"/> |
50 |
</ant> |
156 |
</ant> |
|
|
157 |
<copy file="../NetBeans-release35-${buildnumber}.zip" |
158 |
tofile="NetBeansIDE-release35-${buildnumber}-ML-FR.zip" /> |
159 |
<delete file="../NetBeans-release35-${buildnumber}.zip" /> |
160 |
</target> |
161 |
|
162 |
<target name="buildnbms-ja-zh" depends="check-ja-zh" if="netbeans.ja-zh"> |
163 |
<antcall target="clean"/> |
164 |
<antcall target="copylocalized-ja-zh"/> |
165 |
<!-- build all modules for NBMs build --> |
166 |
<ant dir=".." target="build-nozip"> |
167 |
<property name="moduleconfig" value="${aumoduleconfig}"/> |
168 |
</ant> |
169 |
<!-- build NBMs --> |
170 |
<ant dir=".." target="build-nbms"> |
171 |
<property name="moduleconfig" value="${aumoduleconfig}"/> |
172 |
</ant> |
173 |
<copy todir="nb" flatten="true"> |
174 |
<fileset dir="${nbroot}"> |
175 |
<include name="**/*.nbm"/> |
176 |
</fileset> |
177 |
</copy> |
178 |
<zip zipfile="NetBeansIDE-release35-${buildnumber}-ML-nbms.zip" basedir="." includes="nb/**/*.nbm" /> |
179 |
</target> |
180 |
|
181 |
<target name="buildnbms-ru" if="netbeans.russian"> |
182 |
<antcall target="clean"/> |
183 |
<antcall target="copylocalized-ru"/> |
184 |
<!-- build all modules for NBMs build --> |
185 |
<ant dir=".." target="build-nozip"> |
186 |
<property name="moduleconfig" value="${aumoduleconfig}"/> |
187 |
</ant> |
188 |
<!-- build NBMs --> |
189 |
<ant dir=".." target="build-nbms"> |
190 |
<property name="moduleconfig" value="${aumoduleconfig}"/> |
191 |
</ant> |
192 |
<copy todir="nb" flatten="true"> |
193 |
<fileset dir="${nbroot}"> |
194 |
<include name="**/*.nbm"/> |
195 |
</fileset> |
196 |
</copy> |
197 |
<zip zipfile="NetBeansIDE-release35-${buildnumber}-ML-RU-nbms.zip" basedir="." includes="nb/**/*.nbm" /> |
51 |
</target> |
198 |
</target> |
52 |
|
199 |
|
53 |
<target name="buildnbms" depends="copylocalized"> |
200 |
<target name="buildnbms-fr" if="netbeans.french"> |
|
|
201 |
<antcall target="clean"/> |
202 |
<antcall target="copylocalized-fr"/> |
54 |
<!-- build all modules for NBMs build --> |
203 |
<!-- build all modules for NBMs build --> |
55 |
<ant dir=".." target="build-nozip"> |
204 |
<ant dir=".." target="build-nozip"> |
56 |
<property name="netbeans.japanese" value="true"/> |
|
|
57 |
<property name="moduleconfig" value="${aumoduleconfig}"/> |
205 |
<property name="moduleconfig" value="${aumoduleconfig}"/> |
58 |
</ant> |
206 |
</ant> |
59 |
<!-- build NBMs --> |
207 |
<!-- build NBMs --> |
60 |
<ant dir=".." target="build-nbms"> |
208 |
<ant dir=".." target="build-nbms"> |
61 |
<property name="netbeans.japanese" value="true"/> |
|
|
62 |
<property name="moduleconfig" value="${aumoduleconfig}"/> |
209 |
<property name="moduleconfig" value="${aumoduleconfig}"/> |
63 |
</ant> |
210 |
</ant> |
|
|
211 |
<copy todir="nb" flatten="true"> |
212 |
<fileset dir="${nbroot}"> |
213 |
<include name="**/*.nbm"/> |
214 |
</fileset> |
215 |
</copy> |
216 |
<zip zipfile="NetBeansIDE-release35-${buildnumber}-ML-FR-nbms.zip" basedir="." includes="nb/**/*.nbm" /> |
217 |
</target> |
218 |
|
219 |
<target name="real-clean"> |
220 |
<antcall target="clean"/> |
221 |
</target> |
222 |
|
223 |
<target name="clean"> |
224 |
<delete> |
225 |
<fileset dir="${nbroot}"> |
226 |
<include name="**/*_ja.*"/> |
227 |
<include name="**/*_zh.*"/> |
228 |
<include name="**/*_zh_TW.*"/> |
229 |
<include name="**/*_ru.*"/> |
230 |
<include name="**/*_fr.*"/> |
231 |
<include name="nbbuild/netbeans"/> |
232 |
<include name="nbbuild/mlbuild/nb"/> |
233 |
<include name="nbbuild/NetBeans*.zip"/> |
234 |
<exclude name="translatedfiles/**/*"/> |
235 |
</fileset> |
236 |
<fileset dir="${nbroot}"> |
237 |
<include name="**/*.nbm"/> |
238 |
</fileset> |
239 |
</delete> |
64 |
</target> |
240 |
</target> |
65 |
|
241 |
|
66 |
</project> |
242 |
</project> |