Skip to content
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

Path to javac executable #4

Closed
mzorba opened this issue Jan 27, 2020 · 3 comments
Closed

Path to javac executable #4

mzorba opened this issue Jan 27, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@mzorba
Copy link

mzorba commented Jan 27, 2020

Hello,

First of all, thank you for implementing this useful plugin.

I am trying to use it for automatically downloading JDK during the build. It works as expected.
I am getting path to Adopt OPenJDK download location in jdkPathProperty. The issue I am having is finding absolute path to javac executable on different OS. Each Adopt OS distribution and even version has different structure. MacOS has "Contents/Home", Windows does not.

Do you maybe have a suggestion how to do this, is the plugin itself able to expose it, since if I am correct there is logic inside for locating executables?

Thank you,
Miro

@raydac
Copy link
Owner

raydac commented Jan 27, 2020

I have improved cache-jdk mojo, added feature to search files in cached JDK root through ANT patterns and place found paths as project properties, you can try it in 1.0.6-SNAPSHOT in the case just provide patterns for needed files and they will be found and added in project properties

 <pathAsProperty>
    <jdk.javac.file>/**/javac</jdk.javac.file>
    <jdk.jstat.file>/**/jstat</jdk.jstat.file>
    <jdk.jexec.file>/**/lib/jexec*</jdk.jexec.file>
 </pathAsProperty>

@raydac raydac self-assigned this Jan 28, 2020
@raydac raydac added the enhancement New feature or request label Jan 28, 2020
@mzorba
Copy link
Author

mzorba commented Jan 28, 2020

Wow, that was fast 👍.
It works, thanks a lot.

Regards,
Miro

@raydac
Copy link
Owner

raydac commented Jan 29, 2020

added into release 1.0.6

@raydac raydac closed this as completed Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants