|
33 | 33 | <property name="nb_all" location="netbeans" /> |
34 | 34 | <loadresource property="patch-files-l10n"> |
35 | 35 | <string> |
36 | | - patches/l10n/adding-ja-and-zh_CN.diff |
| 36 | + patches/l10n/filter-enabled-clusters-disabled-modules-code-cleanup.diff |
| 37 | + patches/l10n/adding-java.lsp.server-ja-and-zh_CN.diff |
37 | 38 | </string> |
38 | 39 | <filterchain> |
39 | 40 | <tokenfilter delimoutput=" "> |
|
58 | 59 | patches/rename-debugger.diff |
59 | 60 | patches/remove-db.diff |
60 | 61 | patches/nbjavac-not-required.diff |
61 | | - patches/l10n-liscence.diff |
| 62 | + patches/l10n-licence.diff |
62 | 63 | </string> |
63 | 64 | <filterchain> |
64 | 65 | <tokenfilter delimoutput=" "> |
|
129 | 130 | </target> |
130 | 131 |
|
131 | 132 | <property name="netbeans.l10n.dir" location="netbeans-l10n"/> |
132 | | - <property name="javavscode.nbuild.nb.dir" location="netbeans/nbbuild/netbeans"/> |
133 | | - <property name="javavscode.nbcode.extra.dir" location="vscode/nbcode/extra"/> |
| 133 | + <property name="nbcode.l10n.dir" location="nbcode/l10n"/> |
| 134 | + <property name="vscode.nbcode.extra.dir" location="vscode/nbcode/extra"/> |
134 | 135 |
|
135 | | - <target name="build-l10n-ant-text-jar"> |
| 136 | + <target name="build-l10n-ant-ext-jar"> |
136 | 137 | <ant dir="${netbeans.l10n.dir}/l10nantext" inheritall="false" inheritrefs="false"> |
137 | 138 | <property name="file.reference.ant.jar" value="${ant.home}/lib/ant.jar"/> |
138 | 139 | </ant> |
139 | 140 | </target> |
140 | 141 |
|
141 | 142 | <target name="build-l10n"> |
142 | | - <ant dir="${netbeans.l10n.dir}/locale_${locale}" target="build" inheritall="false" inheritrefs="false"> |
143 | | - <property name="nbplatform.default.harness.dir" location="${javavscode.nbuild.nb.dir}/harness"/> |
144 | | - <property name="nbplatform.default.netbeans.dest.dir" location="${javavscode.nbuild.nb.dir}"/> |
| 143 | + <ant dir="${nbcode.l10n.dir}/locale_${locale}" target="build" inheritall="false" inheritrefs="false"> |
| 144 | + <property name="nbplatform.default.harness.dir" location="${nbplatform.default.harness.dir}"/> |
| 145 | + <property name="nbplatform.default.netbeans.dest.dir" location="${nbplatform.default.netbeans.dest.dir}"/> |
| 146 | + <property name="netbeans.l10n.dir" location="${netbeans.l10n.dir}"/> |
| 147 | + <property name="nbantext.jar" location="${nbantext.jar}"/> |
145 | 148 | </ant> |
146 | | - <copy todir="${javavscode.nbcode.extra.dir}"> |
147 | | - <fileset dir="${netbeans.l10n.dir}/locale_${locale}/build/cluster"/> |
| 149 | + <copy todir="${vscode.nbcode.extra.dir}"> |
| 150 | + <fileset dir="${nbcode.l10n.dir}/locale_${locale}/build/cluster"/> |
148 | 151 | </copy> |
149 | 152 | </target> |
150 | 153 | <target name="clean-l10n"> |
151 | | - <delete dir="${netbeans.l10n.dir}/locale_${locale}/build"/> |
152 | | - <delete dir="${netbeans.l10n.dir}/locale_${locale}/release"/> |
| 154 | + <delete dir="${nbcode.l10n.dir}/locale_${locale}/build" includeemptydirs="true" quiet="true"/> |
| 155 | + <delete dir="${nbcode.l10n.dir}/locale_${locale}/release" includeemptydirs="true" quiet="true"/> |
| 156 | + <delete includeemptydirs="true" quiet="true"> |
| 157 | + <fileset dir="${vscode.nbcode.extra.dir}"> |
| 158 | + <include name="**/*${locale}.jar"/> |
| 159 | + <include name="**/*${locale}.xml"/> |
| 160 | + <include name="**/*${locale}.html"/> |
| 161 | + </fileset> |
| 162 | + </delete> |
153 | 163 | </target> |
154 | 164 | <target name="clean-l10n-bundles"> |
155 | 165 | <delete dir="${netbeans.l10n.dir}/l10nantext/build"/> |
|
162 | 172 | </ant> |
163 | 173 | </target> |
164 | 174 | <target name="no-l10n"> |
165 | | - <property name="javavscode.disablel0n" value="true"/> |
| 175 | + <property name="disable.netbeans.l10n" value="true"/> |
166 | 176 | </target> |
167 | | - <target name="build-l10n-bundles" depends="clean-l10n-bundles,build-l10n-ant-text-jar" description="builds l10n language bundles for vs code extension" |
168 | | - unless="${javavscode.disablel0n}" |
169 | | - > |
| 177 | + <target name="build-l10n-bundles" depends="clean-l10n-bundles,build-l10n-ant-ext-jar" description="builds l10n language bundles for vs code extension" |
| 178 | + unless="${disable.netbeans.l10n}"> |
170 | 179 | <ant target="build-l10n"> |
171 | 180 | <property name="locale" value="ja" description="japanese"/> |
172 | 181 | </ant> |
|
221 | 230 | <arg value="--save" /> |
222 | 231 | < arg value= "@vscode/[email protected]" /> |
223 | 232 | </exec> |
224 | | - |
225 | | - <copy file="${basedir}/LICENSE.txt" todir="${basedir}/vscode" /> |
226 | | - <copy file="${basedir}/THIRD_PARTY_LICENSES.txt" todir="${basedir}/vscode" /> |
227 | | - |
| 233 | + |
| 234 | + <copy file="${basedir}/LICENSE.txt" todir="${basedir}/vscode" /> |
| 235 | + <copy file="${basedir}/THIRD_PARTY_LICENSES.txt" todir="${basedir}/vscode" /> |
| 236 | + |
228 | 237 | <exec executable="${build.dir}/vsce/node_modules/.bin/vsce${cmd.suffix}" failonerror="true" dir="${basedir}/vscode"> |
229 | 238 | <arg value="package" /> |
230 | 239 | <arg line="${vsce.extra.args}" /> |
|
234 | 243 | <arg value="https://github.com/oracle/javavscode/raw/${metabuild.hash}/vscode" /> |
235 | 244 | <arg value="--out" /> |
236 | 245 | <arg value="${build.dir}/oracle-java-${vsix.version}.vsix" /> |
237 | | - </exec> |
238 | | - <delete file="${basedir}/vscode/LICENSE.txt"/> |
239 | | - <delete file="${basedir}/vscode/THIRD_PARTY_LICENSES.txt"/> |
| 246 | + </exec> |
| 247 | + <delete file="${basedir}/vscode/LICENSE.txt"/> |
| 248 | + <delete file="${basedir}/vscode/THIRD_PARTY_LICENSES.txt"/> |
240 | 249 | </target> |
241 | 250 | <target name="test-lsp-server" description="Tests the LSP server behavior"> |
242 | 251 | <ant dir="nbcode" target="test" inheritall="false" inheritrefs="false"> |
|
290 | 299 | <condition value="true" property="should-apply"> |
291 | 300 | <and> |
292 | 301 | <istrue value="${has-l10n-patches}"/> |
293 | | - <isfalse value="${javavscode.disablel0n}"/> |
| 302 | + <isfalse value="${disable.netbeans.l10n}"/> |
294 | 303 | </and> |
295 | 304 | </condition> |
296 | 305 | <ant target="git-patch"> |
|
308 | 317 | import java.util.List; |
309 | 318 | import java.util.stream.Collectors; |
310 | 319 | public class Reverse { |
311 | | - public static void main(String[] args) { |
312 | | - List<String> patches = Arrays.asList(args[0].split(" ")); |
313 | | - Collections.reverse(patches); |
314 | | - System.out.print(patches.stream().collect(Collectors.joining(" "))); |
315 | | - } |
| 320 | + public static void main(String[] args) { |
| 321 | + List<String> patches = Arrays.asList(args[0].split(" ")); |
| 322 | + Collections.reverse(patches); |
| 323 | + System.out.print(patches.stream().collect(Collectors.joining(" "))); |
| 324 | + } |
316 | 325 | } |
317 | 326 | </echo> |
318 | 327 | <java sourcefile="${build.dir}/Reverse.java" |
|
339 | 348 | <condition value="true" property="should-apply"> |
340 | 349 | <and> |
341 | 350 | <istrue value="${has-l10n-patches}"/> |
342 | | - <isfalse value="${javavscode.disablel0n}"/> |
| 351 | + <isfalse value="${disable.netbeans.l10n}"/> |
343 | 352 | </and> |
344 | 353 | </condition> |
345 | 354 | <ant target="git-un-patch"> |
|
0 commit comments