This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 7368fc8 Updates to better document the build of VSCode. new 78070a8 Merge pull request #2782 from MartinBalin/vscode/build_md_update 7368fc8 is described below commit 7368fc8fe76b9c04ce0c622402908139ad2e740a Author: Martin Balin <martin.ba...@oracle.com> AuthorDate: Thu Feb 25 17:31:26 2021 +0100 Updates to better document the build of VSCode. --- java/java.lsp.server/vscode/BUILD.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/java/java.lsp.server/vscode/BUILD.md b/java/java.lsp.server/vscode/BUILD.md index fd6157b..553860e 100644 --- a/java/java.lsp.server/vscode/BUILD.md +++ b/java/java.lsp.server/vscode/BUILD.md @@ -20,6 +20,13 @@ under the License. --> +## Prerequisities +It is necessary to have installed: +- Ant, latest version +- Maven, latest version +- node.js, latest LTS (to build VSIX) + +It is recommended to build using JDK 8. ## Getting the Code @@ -35,11 +42,20 @@ To build the VS Code extension invoke: ```bash netbeans$ ant build netbeans$ cd java/java.lsp.server -java.lsp.server$ ant build-vscode-ext -D3rdparty.modules=.*nbjavac.* +java.lsp.server$ ant build-vscode-ext ``` - -The `3rdparty.modules` property doesn't have to be set at all. The resulting extension is then in the `build` directory, with the `.vsix` extension. +#### Build Options +- `-Dvsix.version=x.y.z`can be used to set release version. E.g. set this option to `12.3.0` to get proper NetBeans release version for extension. +- `-D3rdparty.modules=.*nbjavac.*` can be set to include nb-javac which allows extension to run out of the box on JDK8. For **zsh** it is necessary to wrap it: `-D3rdparty.modules='.*nbjavac.*'` + +The build of NetBeans VSCode extension with nb-javac included, for version 12.3.0 then looks like this: +```bash +netbeans$ ant build +netbeans$ cd java/java.lsp.server +java.lsp.server$ ant build-vscode-ext -D3rdparty.modules=.*nbjavac.* -Dvsix.version=12.3.0 +``` + ### Building for Development --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists