-
Notifications
You must be signed in to change notification settings - Fork 65
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
7903139: avoid jpackage in build.gradle #11
Conversation
👋 Welcome back sundar! A progress list of the required criteria for merging this PR into |
@sundararajana This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@mcimadamore) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
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.
Looks good, the only nit is that I can see few JDK-specific launchers in the bin folder which can be confusing - e.g. javac
, java
, serialver
etc. Would it be possible to drop them?
Uhmmm - seems like jlink doesn't allow for that, and if we clean up all executables, then the jextract script fails because it can't find "java". |
/integrate |
@sundararajana |
I believe README needs changes. |
So far one needs to manually specify the exact path of the jextract "binary" (launcher script should behave the same) anyway. I don't expect any problems. If there are, I'll adjust the plugin, so please go ahead! 🙂 |
Ok, thanks. What this change does, is that it makes the build output more regular, so your plugin can just take a variable that points to "jextract home". |
|
||
To run the `jextract` tool, simply run the `jextract` command in the `bin` folder (again, the exact location of the binary might vary slightly depending on the platform, e.g. on macOs `build/jextract.app/Contents/MacOS/jextract` ): | ||
After building, there should be a new `jextract` folder under `build`. | ||
To run the `jextract` tool, simply run the `jextract` command in the `bin` folder: |
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.
should say jextract.bat
for windows (e.g. in parens) ?
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.
Hmm... "jextract' command is what we say. On Windows jextract.exe, jextract.bat both will be called "jextract" command (because user doesn't run with the extension), right?
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.
Yes, .bat
can be dropped
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.
ok
/integrate |
@sundararajana |
/sponsor |
Going to push as commit fd03cfe. |
@mcimadamore @sundararajana Pushed as commit fd03cfe. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Using jlink with launcher option instead of jpackage. This ensures uniform layout of app dir ($app/bin/jextract script) on all platforms. Also this avoids the use of third-party jpackage grade plugin.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jextract pull/11/head:pull/11
$ git checkout pull/11
Update a local copy of the PR:
$ git checkout pull/11
$ git pull https://git.openjdk.java.net/jextract pull/11/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 11
View PR using the GUI difftool:
$ git pr show -t 11
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jextract/pull/11.diff