This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 33799
Collapse All | Expand All

(-)nbbuild/mlbuild/build.xml (-13 / +214 lines)
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.chinese.simplified" value="true"/>
33
  <property name="netbeans.russian" value="true"/>
34
  <property name="netbeans.french" value="true"/>
35
36
  <target name="init" depends="set-buildnumber"/>
37
38
  <target name="set-buildnumber" unless="buildnumber">
39
    <tstamp>
40
        <format property="buildnumber" pattern="yyyyMMddhhmm" locale="cs" />
41
    </tstamp>
42
    <echo>buildnumber is ${buildnumber}
43
</echo>
44
  </target>
45
46
  <target name="all" depends="buildide,buildnbms"/>
47
48
  <target name="check-ru" if="netbeans.russian">
49
    <property name="netbeans.localized" value="true"/>
50
  </target>
51
52
  <target name="check-fr" if="netbeans.french">
53
    <property name="netbeans.localized" value="true"/>
54
  </target>
30
55
31
  <target name="makelocjars">
56
  <target name="check-localized" depends="check-ja-zh-zhTW,check-ru,check-fr"/>
57
58
  <target name="makelocjars" depends="check-localized" if="netbeans.localized">
32
    <echo message="Building all localized jars"/>
59
    <echo message="Building all localized jars"/>
33
    <ant dir="${nbroot}/translatedfiles"/>
60
    <ant dir="${nbroot}/translatedfiles"/>
34
  </target>
61
  </target>
35
62
36
  <target name="copylocalized" depends="makelocjars">
63
  <target name="copylocalized-ja-zh-zhTW" depends="check-ja-zh-zhTW" if="netbeans.ja-zh-zhTW">
64
    <ant dir="." target="copylocalized-ja"/>
65
    <ant dir="." target="copylocalized-zh"/>
66
    <ant dir="." target="copylocalized-zh_TW"/>
67
  </target>
68
69
  <target name="copylocalized-ja" depends="makelocjars" if="netbeans.japanese" >
37
    <copy todir="${nbroot}">
70
    <copy todir="${nbroot}">
38
      <fileset dir="${nbroot}/translatedfiles/nb">
71
      <fileset dir="${nbroot}/translatedfiles/nb">
39
        <include name="**/*_ja.*"/>
72
        <include name="**/*_ja.*"/>
40
<!--	<include name="**/*_zh.*"/>
41
	<include name="**/*_zh_TW.*"/>-->
42
      </fileset>
73
      </fileset>
43
    </copy>
74
    </copy>
44
  </target>
75
  </target>
45
76
46
  <target name="buildide" depends="copylocalized">
77
  <target name="copylocalized-zh" depends="makelocjars" if="netbeans.chinese" >
78
    <copy todir="${nbroot}">
79
      <fileset dir="${nbroot}/translatedfiles/nb">
80
        <include name="**/*_zh.*"/>
81
      </fileset>
82
    </copy>
83
  </target>
84
85
  <target name="copylocalized-zh_TW" depends="makelocjars" if="netbeans.chinese.simplified" >
86
    <copy todir="${nbroot}">
87
      <fileset dir="${nbroot}/translatedfiles/nb">
88
	<include name="**/*_zh_TW.*"/>
89
      </fileset>
90
    </copy>
91
  </target>
92
93
  <target name="copylocalized-ru" depends="makelocjars" if="netbeans.russian" >
94
    <copy todir="${nbroot}">
95
      <fileset dir="${nbroot}/translatedfiles/nb">
96
        <include name="**/*_ru.*"/>
97
      </fileset>
98
    </copy>
99
  </target>
100
101
  <target name="copylocalized-fr" depends="makelocjars" if="netbeans.french" >
102
    <copy todir="${nbroot}">
103
      <fileset dir="${nbroot}/translatedfiles/nb">
104
        <include name="**/*_fr.*"/>
105
      </fileset>
106
    </copy>
107
  </target>
108
109
  <target name="buildide" depends="init">
110
    <ant dir="." target="buildide-ja-zh-zhTW"/>
111
    <ant dir="." target="buildide-ru"/>
112
    <ant dir="." target="buildide-fr"/>
113
    <ant dir="." target="clean"/>
114
  </target>
115
116
  <target name="buildnbms" depends="init">
117
    <ant dir="." target="buildnbms-ja-zh-zhTW"/>
118
    <ant dir="." target="buildnbms-ru"/>
119
    <ant dir="." target="buildnbms-fr"/>
120
    <ant dir="." target="clean"/>
121
  </target>
122
123
  <target name="check-ja" if="netbeans.japanese">
124
    <property name="netbeans.ja-zh-zhTW" value="true"/>
125
    <property name="netbeans.localized" value="true"/>
126
  </target>
127
128
  <target name="check-zh" if="netbeans.chinese">
129
    <property name="netbeans.ja-zh-zhTW" value="true"/>
130
    <property name="netbeans.localized" value="true"/>
131
  </target>
132
133
  <target name="check-zhTW" if="netbeans.chinese.simplified">
134
    <property name="netbeans.ja-zh-zhTW" value="true"/>
135
    <property name="netbeans.localized" value="true"/>
136
  </target>
137
138
  <target name="check-ja-zh-zhTW" depends="check-ja,check-zh,check-zhTW"/>
139
140
  <target name="buildide-ja-zh-zhTW" depends="check-ja-zh-zhTW" if="netbeans.ja-zh-zhTW">
141
    <ant dir="." target="clean"/>
142
    <ant dir="." target="copylocalized-ja-zh-zhTW"/>
47
    <ant dir=".." target="build-nozip">
143
    <ant dir=".." target="build-nozip">
48
      <property name="netbeans.japanese" value="true"/>
49
      <property name="moduleconfig" value="${idemoduleconfig}"/>
144
      <property name="moduleconfig" value="${idemoduleconfig}"/>
50
    </ant>
145
    </ant>
146
    <zip basedir=".." 
147
         zipfile="NetBeansIDE-release35-${buildnumber}-ML.zip"
148
         includes="netbeans/**" />
51
  </target>
149
  </target>
52
  
150
53
  <target name="buildnbms" depends="copylocalized">
151
  <target name="buildide-ru" if="netbeans.russian">
152
    <ant dir="." target="clean"/>
153
    <ant dir="." target="copylocalized-ru"/>
154
    <ant dir=".." target="build-nozip">
155
      <property name="moduleconfig" value="${idemoduleconfig}"/>
156
    </ant>
157
    <zip basedir=".." 
158
         zipfile="NetBeansIDE-release35-${buildnumber}-ML-RU.zip"
159
         includes="netbeans/**" />
160
  </target>
161
162
  <target name="buildide-fr" if="netbeans.french">
163
    <ant dir="." target="clean"/>
164
    <ant dir="." target="copylocalized-fr"/>
165
    <ant dir=".." target="build-nozip">
166
      <property name="moduleconfig" value="${idemoduleconfig}"/>
167
    </ant>
168
    <zip basedir=".." 
169
         zipfile="NetBeansIDE-release35-${buildnumber}-ML-FR.zip"
170
         includes="netbeans/**" />
171
  </target>
172
173
  <target name="buildnbms-ja-zh-zhTW" depends="check-ja-zh-zhTW" if="netbeans.ja-zh-zhTW">
174
    <ant dir="." target="clean"/>
175
    <ant dir="." target="copylocalized-ja-zh-zhTW"/>
176
    <!-- build all modules for NBMs build -->
177
    <ant dir=".." target="build-nozip">
178
      <property name="moduleconfig" value="${aumoduleconfig}"/>
179
    </ant>
180
    <!-- build NBMs -->
181
    <ant dir=".." target="build-nbms">
182
      <property name="moduleconfig" value="${aumoduleconfig}"/>
183
    </ant>
184
    <copy todir="nb" flatten="true">
185
      <fileset dir="${nbroot}">
186
        <include name="**/*.nbm"/>
187
      </fileset>
188
    </copy>
189
    <zip zipfile="NetBeansIDE-release35-${buildnumber}-ML-nbms.zip" basedir="." includes="nb/**/*.nbm" />
190
  </target>
191
192
  <target name="buildnbms-ru" if="netbeans.russian">
193
    <ant dir="." target="clean"/>
194
    <ant dir="." target="copylocalized-ru"/>
195
    <!-- build all modules for NBMs build -->
196
    <ant dir=".." target="build-nozip">
197
      <property name="moduleconfig" value="${aumoduleconfig}"/>
198
    </ant>
199
    <!-- build NBMs -->
200
    <ant dir=".." target="build-nbms">
201
      <property name="moduleconfig" value="${aumoduleconfig}"/>
202
    </ant>
203
    <copy todir="nb" flatten="true">
204
      <fileset dir="${nbroot}">
205
        <include name="**/*.nbm"/>
206
      </fileset>
207
    </copy>
208
    <zip zipfile="NetBeansIDE-release35-${buildnumber}-ML-RU-nbms.zip" basedir="." includes="nb/**/*.nbm" />
209
  </target>
210
211
  <target name="buildnbms-fr" if="netbeans.french">
212
    <ant dir="." target="clean"/>
213
    <ant dir="." target="copylocalized-fr"/>
54
    <!-- build all modules for NBMs build -->
214
    <!-- build all modules for NBMs build -->
55
    <ant dir=".." target="build-nozip">
215
    <ant dir=".." target="build-nozip">
56
      <property name="netbeans.japanese" value="true"/>
57
      <property name="moduleconfig" value="${aumoduleconfig}"/>
216
      <property name="moduleconfig" value="${aumoduleconfig}"/>
58
    </ant>
217
    </ant>
59
    <!-- build NBMs -->
218
    <!-- build NBMs -->
60
    <ant dir=".." target="build-nbms">
219
    <ant dir=".." target="build-nbms">
61
      <property name="netbeans.japanese" value="true"/>
62
      <property name="moduleconfig" value="${aumoduleconfig}"/>
220
      <property name="moduleconfig" value="${aumoduleconfig}"/>
63
    </ant>
221
    </ant>
222
    <copy todir="nb" flatten="true">
223
      <fileset dir="${nbroot}">
224
        <include name="**/*.nbm"/>
225
      </fileset>
226
    </copy>
227
    <zip zipfile="NetBeansIDE-release35-${buildnumber}-ML-FR-nbms.zip" basedir="." includes="nb/**/*.nbm" />
228
  </target>
229
230
  <target name="clean">
231
    <ant dir="." target="cleanlocalized"/>
232
    <ant dir="." target="cleannbms"/>
233
  </target>
234
235
  <target name="real-clean">
236
    <ant dir="." target="clean"/>
237
    <delete>
238
      <fileset dir="${nbroot}/nbbuild">
239
        <include name="antsrc/**/*.class"/>
240
        <include name="nbantext.jar"/>
241
        <include name="mlbuild/NetBeansIDE*.zip"/>
242
      </fileset>
243
    </delete>
244
  </target>
245
246
  <target name="cleanlocalized">
247
    <delete>
248
      <fileset dir="${nbroot}">
249
        <include name="**/*_ja.*"/>
250
        <include name="**/*_zh.*"/>
251
        <include name="**/*_zh_TW.*"/>
252
        <include name="**/*_ru.*"/>
253
        <include name="**/*_fr.*"/>
254
        <exclude name="translatedfiles/**/*"/>
255
      </fileset>
256
    </delete>
257
  </target>
258
259
  <target name="cleannbms">
260
    <delete>
261
      <fileset dir="${nbroot}">
262
        <include name="**/*.nbm"/>
263
      </fileset>
264
    </delete>
64
  </target>
265
  </target>
65
266
66
</project>
267
</project>
(-)nbbuild/build.xml (+4 lines)
Lines 203-208 Link Here
203
  </target>
203
  </target>
204
204
205
  <!-- And the modules: -->
205
  <!-- And the modules: -->
206
  <target name="all-a11y" depends="all-openide,all-openide/io,all-form,all-junit,all-xtest">
207
    <echo message="Building module a11y..."/>
208
    <ant dir="../a11y" target="netbeans"/>
209
  </target>
206
  <target name="all-ant" depends="all-openide,all-core/javahelp,all-openide/deprecated,all-openide/compiler,all-openide/execution,all-openide/io">
210
  <target name="all-ant" depends="all-openide,all-core/javahelp,all-openide/deprecated,all-openide/compiler,all-openide/execution,all-openide/io">
207
    <echo message="Building module ant..."/>
211
    <echo message="Building module ant..."/>
208
    <ant dir="../ant" target="netbeans"/>
212
    <ant dir="../ant" target="netbeans"/>

Return to bug 33799