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

JDK-Tool falsely assumes extension of required tool. #10

Closed
Jai-2001 opened this issue Mar 19, 2023 · 2 comments
Closed

JDK-Tool falsely assumes extension of required tool. #10

Jai-2001 opened this issue Mar 19, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Jai-2001
Copy link

Jai-2001 commented Mar 19, 2023

Running the JDK-Tool stage on Windows assumes that the extension of the desired tool will be ".exe", while some tools are known to use other extensions, such .cmd. This can be reproduced by caching a version of GraalVM, and attempting to run the "gu" tool which results in the following error.

[INFO] --- mvn-jlink-wrapper:1.2.0:jdk-tool (call-tool) @ {PACKAGE_NAME}---
[ERROR] Can't find file: C:\Users\{USERNAME}\.jdks\graalvm-ce-19\bin\gu.exe
@raydac raydac self-assigned this Mar 19, 2023
@raydac raydac added bug Something isn't working bug? situation when a bug can be detected but need explanation and removed bug Something isn't working labels Mar 19, 2023
@raydac
Copy link
Owner

raydac commented Mar 19, 2023

and could you provide some example of your pom to recognize how you make a call to the "gu" tool?

@raydac
Copy link
Owner

raydac commented Mar 19, 2023

I've made some improvements in 1.2.1_SNAPSHOT so you can provide specific extenstion for selected OS through task config

<forceOsExtensions>
   <windows>cmd</windows>
</forceOsExtensions>

just provide the parameter for task where you call gu.cmd and it will be using cmd extension

@raydac raydac added enhancement New feature or request and removed bug? situation when a bug can be detected but need explanation labels Mar 21, 2023
@raydac raydac closed this as completed Mar 24, 2023
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