-
Notifications
You must be signed in to change notification settings - Fork 10
Feature: Add java runtime (for PMD) [PLUTO-1420] #114
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
267a9f2
fix: app starting on windows
andrzej-janczak b1194dc
WIP pmd windows
andrzej-janczak 1cd581b
refactor: remove Windows-specific paths from tool binaries and update…
andrzej-janczak 9589804
WIP: pmd macos works
andrzej-janczak 117846f
refactor: move permission constants to dedicated package to resolve i…
andrzej-janczak 9757f02
works for linux
andrzej-janczak 911f965
refactor: replace logrus with custom logger in extract.go for error h…
andrzej-janczak 734808f
refactor: streamline error handling in ExtractTarGz and ExtractZip fu…
andrzej-janczak 7afe30c
chore: remove cli-v2-linux binary file
andrzej-janczak b8a3ea6
refactor: enhance runtime installation process with pre-checks and lo…
andrzej-janczak 9b9a48e
revert the syslinks
andrzej-janczak 09ec5f1
refactor: extract major version logic into a separate function for im…
andrzej-janczak 86285f9
fix pmd test
andrzej-janczak e919e05
improve 1
andrzej-janczak 713cd21
add PMD java runtime fallback
andrzej-janczak 08616d3
enhance PMD Java runtime fallback with improved logging and environme…
andrzej-janczak e53e362
refactor: simplify PMD command configuration by removing default rule…
andrzej-janczak 1041ce4
add Java runtime support to configuration template
andrzej-janczak 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package constants | ||
|
|
||
| const ( | ||
| // FilePermission represents the default file permission (rw-r--r--) | ||
| // This permission gives: | ||
| // - read/write (rw-) permissions to the owner | ||
| // - read-only (r--) permissions to the group | ||
| // - read-only (r--) permissions to others | ||
| DefaultFilePerms = 0644 | ||
|
|
||
| // DefaultDirPerms represents the default directory permission (rwxr-xr-x) | ||
| // This permission gives: | ||
| // - read/write/execute (rwx) permissions to the owner | ||
| // - read/execute (r-x) permissions to the group | ||
| // - read/execute (r-x) permissions to others | ||
| // | ||
| // Execute permission on directories is required to: | ||
| // - List directory contents (ls) | ||
| // - Access files within the directory (cd) | ||
| // - Create/delete files in the directory | ||
| // Without execute permission, users cannot traverse into or use the directory, | ||
| // even if they have read/write permissions on files inside it | ||
| DefaultDirPerms = 0755 // For directories | ||
| ) | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: java | ||
| description: Java Runtime Environment | ||
| download: | ||
| url_template: "https://github.com/adoptium/temurin{{.MajorVersion}}-binaries/releases/download/jdk-{{.Version}}%2B7/OpenJDK{{.MajorVersion}}U-jdk_{{.Arch}}_{{.OS}}_hotspot_{{.Version}}_7.{{.Extension}}" | ||
| file_name_template: "jdk-{{.Version}}+7" | ||
| extension: | ||
| default: "tar.gz" | ||
| arch_mapping: | ||
| "386": "x86-32" | ||
| "amd64": "x64" | ||
| "arm": "arm" | ||
| "arm64": "aarch64" | ||
| os_mapping: | ||
| "darwin": "mac" | ||
| "linux": "linux" | ||
| binaries: | ||
| - name: java | ||
| path: | ||
| darwin: "Contents/Home/bin/java" | ||
| linux: "bin/java" |
Oops, something went wrong.
Oops, something went wrong.
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.
I think we need remove this one from here, and add it only on the specific tool test. Does it make sense @zhamborova with the new strucuture? Then, if you don't have it here, the integration-test will fail if you don't put the java there
Uh oh!
There was an error while loading. Please reload this page.
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.
yeah, we should stop using this for developing maybe
But do we need to start in my PR 😄