|
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}"/> |
145 | 147 | </ant>
|
146 |
| - <copy todir="${javavscode.nbcode.extra.dir}"> |
147 |
| - <fileset dir="${netbeans.l10n.dir}/locale_${locale}/build/cluster"/> |
| 148 | + <copy todir="${vscode.nbcode.extra.dir}"> |
| 149 | + <fileset dir="${nbcode.l10n.dir}/locale_${locale}/build/cluster"/> |
148 | 150 | </copy>
|
149 | 151 | </target>
|
150 | 152 | <target name="clean-l10n">
|
151 |
| - <delete dir="${netbeans.l10n.dir}/locale_${locale}/build"/> |
152 |
| - <delete dir="${netbeans.l10n.dir}/locale_${locale}/release"/> |
| 153 | + <delete dir="${nbcode.l10n.dir}/locale_${locale}/build" includeemptydirs="true" quiet="true"/> |
| 154 | + <delete dir="${nbcode.l10n.dir}/locale_${locale}/release" includeemptydirs="true" quiet="true"/> |
| 155 | + <delete includeemptydirs="true" quiet="true"> |
| 156 | + <fileset dir="${vscode.nbcode.extra.dir}"> |
| 157 | + <include name="**/*${locale}.jar"/> |
| 158 | + <include name="**/*${locale}.xml"/> |
| 159 | + <include name="**/*${locale}.html"/> |
| 160 | + </fileset> |
| 161 | + </delete> |
153 | 162 | </target>
|
154 | 163 | <target name="clean-l10n-bundles">
|
155 | 164 | <delete dir="${netbeans.l10n.dir}/l10nantext/build"/>
|
|
162 | 171 | </ant>
|
163 | 172 | </target>
|
164 | 173 | <target name="no-l10n">
|
165 |
| - <property name="javavscode.disablel0n" value="true"/> |
| 174 | + <property name="disable.netbeans.l10n" value="true"/> |
166 | 175 | </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 |
| - > |
| 176 | + <target name="build-l10n-bundles" depends="clean-l10n-bundles,build-l10n-ant-ext-jar" description="builds l10n language bundles for vs code extension" |
| 177 | + unless="${disable.netbeans.l10n}"> |
170 | 178 | <ant target="build-l10n">
|
171 | 179 | <property name="locale" value="ja" description="japanese"/>
|
172 | 180 | </ant>
|
|
221 | 229 | <arg value="--save" />
|
222 | 230 | < arg value= "@vscode/[email protected]" />
|
223 | 231 | </exec>
|
224 |
| - |
225 |
| - <copy file="${basedir}/LICENSE.txt" todir="${basedir}/vscode" /> |
226 |
| - <copy file="${basedir}/THIRD_PARTY_LICENSES.txt" todir="${basedir}/vscode" /> |
227 |
| - |
| 232 | + |
| 233 | + <copy file="${basedir}/LICENSE.txt" todir="${basedir}/vscode" /> |
| 234 | + <copy file="${basedir}/THIRD_PARTY_LICENSES.txt" todir="${basedir}/vscode" /> |
| 235 | + |
228 | 236 | <exec executable="${build.dir}/vsce/node_modules/.bin/vsce${cmd.suffix}" failonerror="true" dir="${basedir}/vscode">
|
229 | 237 | <arg value="package" />
|
230 | 238 | <arg line="${vsce.extra.args}" />
|
|
234 | 242 | <arg value="https://github.com/oracle/javavscode/raw/${metabuild.hash}/vscode" />
|
235 | 243 | <arg value="--out" />
|
236 | 244 | <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"/> |
| 245 | + </exec> |
| 246 | + <delete file="${basedir}/vscode/LICENSE.txt"/> |
| 247 | + <delete file="${basedir}/vscode/THIRD_PARTY_LICENSES.txt"/> |
240 | 248 | </target>
|
241 | 249 | <target name="test-lsp-server" description="Tests the LSP server behavior">
|
242 | 250 | <ant dir="nbcode" target="test" inheritall="false" inheritrefs="false">
|
|
290 | 298 | <condition value="true" property="should-apply">
|
291 | 299 | <and>
|
292 | 300 | <istrue value="${has-l10n-patches}"/>
|
293 |
| - <isfalse value="${javavscode.disablel0n}"/> |
| 301 | + <isfalse value="${disable.netbeans.l10n}"/> |
294 | 302 | </and>
|
295 | 303 | </condition>
|
296 | 304 | <ant target="git-patch">
|
|
308 | 316 | import java.util.List;
|
309 | 317 | import java.util.stream.Collectors;
|
310 | 318 | 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 |
| - } |
| 319 | + public static void main(String[] args) { |
| 320 | + List<String> patches = Arrays.asList(args[0].split(" ")); |
| 321 | + Collections.reverse(patches); |
| 322 | + System.out.print(patches.stream().collect(Collectors.joining(" "))); |
| 323 | + } |
316 | 324 | }
|
317 | 325 | </echo>
|
318 | 326 | <java sourcefile="${build.dir}/Reverse.java"
|
|
339 | 347 | <condition value="true" property="should-apply">
|
340 | 348 | <and>
|
341 | 349 | <istrue value="${has-l10n-patches}"/>
|
342 |
| - <isfalse value="${javavscode.disablel0n}"/> |
| 350 | + <isfalse value="${disable.netbeans.l10n}"/> |
343 | 351 | </and>
|
344 | 352 | </condition>
|
345 | 353 | <ant target="git-un-patch">
|
|
0 commit comments