-
Notifications
You must be signed in to change notification settings - Fork 5
Jackpot version 17, based on NetBeans 17 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jlahoda
wants to merge
18
commits into
apache:master
Choose a base branch
from
jlahoda:release17
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4e71f9b
Upgrading to NetBeans 16.
jlahoda 3a16ac2
Upgrading to version 17.
jlahoda 60c88dd
Upgrading to NB 17.
jlahoda dd1c7bd
Fix paths for NB 17, disable hints that don't work well for Jackpot.
jlahoda 6bf9db3
Must copy ct.sym and include platform registration.
jlahoda ec385c4
Avoiding compile dependency on internal classes.
jlahoda 9c8f416
Processor must run on JDK 19.
jlahoda 033c440
Trying to add GH actions/workflow
jlahoda 4ed29af
Fix attempt for the workflow.
jlahoda 1a1a204
Fix attempt for the workflow.
jlahoda 038c0f9
Fix attempt for the workflow.
jlahoda d8ae9e3
Fix attempt for the workflow.
jlahoda 69dc59e
Fix attempt for the workflow.
jlahoda d09a465
Fix attempt for the workflow.
jlahoda 3f9979c
Fix attempt for the workflow.
jlahoda 2d10e2d
Fix attempt for the workflow.
jlahoda f23d435
Removing Travis configuration
jlahoda 4a80fdb
Also test/run on JDK 19.
jlahoda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| name: NetBeans Jackpot 3.0 | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| # unlocked event is used as super secret restart button | ||
| types: [opened, synchronize, unlocked] | ||
|
|
||
| # cancel other PR workflow run in the same head-base group if it exists (e.g. during PR syncs) | ||
| # if this is not a PR run (no github.head_ref and github.base_ref defined), use an UID as group | ||
| concurrency: | ||
| group: ${{ github.head_ref || github.run_id }}-${{ github.base_ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
|
|
||
| # primary build job, most other jobs use the artifact produced here | ||
| # artifact is only produced once in the matrix | ||
| base-build: | ||
| name: Build Jackpot 3.0 | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 | ||
| steps: | ||
|
|
||
| - name: Checkout ${{ github.ref }} ( ${{ github.sha }} ) | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| persist-credentials: false | ||
| submodules: false | ||
|
|
||
| - name: Set up Ubuntu dependencies | ||
| run: | | ||
| sudo apt install ant ant-optional openjdk-8-jdk openjdk-11-jdk openjdk-17-jdk openjdk-19-jdk | ||
| - name: Set up NetBeans | ||
| run: | | ||
| wget -q 'https://dlcdn.apache.org/netbeans/netbeans/17/netbeans-17-bin.zip' -O /tmp/netbeans-17-bin.zip | ||
| (cd $HOME; unzip /tmp/netbeans-17-bin.zip) | ||
| - name: Run RAT | ||
| run: | | ||
| echo $PWD | ||
| ls -la $PWD | ||
| (cd cmdline; ant -Dnbplatform.default.harness.dir=$HOME/netbeans/harness rat) | ||
| - name: Do build Jackpot | ||
| run: | | ||
| export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | ||
| export PATH=$JAVA_HOME/bin:$PATH | ||
| export JDK11=/usr/lib/jvm/java-11-openjdk-amd64 | ||
| export JDK17=/usr/lib/jvm/java-17-openjdk-amd64 | ||
| export JDK19=/usr/lib/jvm/java-19-openjdk-amd64 | ||
| (cd cmdline; ant -Dnbplatform.default.harness.dir=$HOME/netbeans/harness -DNETBEANS_PLATFORM=$HOME/netbeans -DJDK11=$JDK11 -DJDK17=$JDK17 -DJDK19=$JDK19 build-and-test) | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,22 +27,22 @@ This tool allows to run NetBeans Java code checker without the NetBeans IDE. Thi | |
|
|
||
| #### To Build | ||
|
|
||
| * Apache NetBeans 13.0 | ||
| * JDK 8, JDK 11 and JDK 17 | ||
| * Apache NetBeans 17 | ||
| * JDK 8, JDK 11, JDK 17 and JDK 19 | ||
| * bash | ||
| * Apache ant 1.9.9 or above | ||
| * Apache Maven 3.3.9 or above | ||
|
|
||
| #### To Run | ||
|
|
||
| * JDK 8-17 | ||
| * JDK 8-19 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great. For purposes of nbjavac I'd need to run on JDK8, but still access JDK17 APIs while refactoring. Is that possible with new version? |
||
|
|
||
| ### Building | ||
|
|
||
| Build using: | ||
|
|
||
| ``` | ||
| $ ant -DNETBEANS_PLATFORM=<path-to-NetBeans-13.0> -DJDK11=<path-to-JDK-11> -DJDK17=<path-to-JDK-17> build-and-test | ||
| $ ant -DNETBEANS_PLATFORM=<path-to-NetBeans-17> -DJDK11=<path-to-JDK-11> -DJDK17=<path-to-JDK-17> -DJDK19=<path-to-JDK-19> build-and-test | ||
| ``` | ||
|
|
||
| The built product is in tool/build/jackpot. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want, you could use the setup-java action here.
the advantage is that it is cached and the setup is really fast, you can also pick the vendor.
example:
https://github.com/actions/setup-java#install-multiple-jdks
the locations are also stored in env vars, see example above