Skip to content

Commit

Permalink
VSCode: Allow for adding extra modules when building extension vsix p…
Browse files Browse the repository at this point in the history
…ackage. (#5865)
  • Loading branch information
dbalek authored Apr 25, 2023
1 parent a56df8c commit 01e4bb2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions java/java.lsp.server/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,21 @@
<chmod file="${lsp.build.dir}/java/maven/bin/mvn" perm="u+x" />

<property name="3rdparty.modules" value=".*externalcodeformatter.*"/>
<autoupdate todir="${lsp.build.dir}/extra" updatecenter="https://netbeans.apache.org/nb/plugins/14/catalog.xml.gz">
<autoupdate todir="${lsp.build.dir}/extra" updatecenter="https://netbeans.apache.org/nb/plugins/17/catalog.xml.gz">
<modules includes="${3rdparty.modules}"/>
</autoupdate>
</target>
<target name="add-extra-modules" depends="build-lsp-server" if="extra.modules">
<ant dir="../../nbbuild" target="build-nbms" inheritall="false" inheritrefs="false">
<property name="cluster.config" value="basic"/>
</ant>
<ant dir="../../nbbuild" target="generate-uc-catalog" inheritall="false" inheritrefs="false"/>
<makeurl file="../../nbbuild/nbms/updates.xml.gz" property="update.center.url"/>
<autoupdate installdir="${lsp.build.dir}" updatecenter="${update.center.url}">
<modules includes="${extra.modules}"/>
</autoupdate>
<delete file="../../nbbuild/nbms/tasks.jar"/>
</target>
<target name="-set-use-jdk-javac">
<property name="test.use.jdk.javac" value="true" />
</target>
Expand All @@ -56,7 +67,7 @@
<delete dir="vscode/out" />
<ant dir="nbcode" target="clean" inheritall="false" inheritrefs="false"/>
</target>
<target name="build-vscode-ext" depends="build-lsp-server" description="Build the Visual Studio Code extension.">
<target name="build-vscode-ext" depends="add-extra-modules" description="Build the Visual Studio Code extension.">
<taskdef name="gitbranchhash" classname="org.netbeans.nbbuild.GitBranchHash" classpath="${nbantext.jar}" />
<gitbranchhash file="." branchproperty="metabuild.branch" hashproperty="metabuild.hash" />
<condition property="metabuild.hash" value="master" >
Expand Down
1 change: 1 addition & 0 deletions java/java.lsp.server/script/etc/nbcode.clusters
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ java
groovy
cpplite
extra
apisupport
enterprise
nbcode

0 comments on commit 01e4bb2

Please sign in to comment.