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

Option to skip if Graal already made exe #373

Open
Lilianne-Blaze opened this issue Jun 9, 2024 · 1 comment
Open

Option to skip if Graal already made exe #373

Lilianne-Blaze opened this issue Jun 9, 2024 · 1 comment

Comments

@Lilianne-Blaze
Copy link
Contributor

Please add an option to try to avoid building the exe if it was already created by some other plugin, like GraalVM native image plugin.

Rationale:
As it is now, if you create a simple Micronaut app and just add Launch4j with minimal/typical configuration, it will create the exe as normal with a normal build, but also during a packaging=native-image build, overwriting the one made by Graal.

I made a quick fix that adds skipIfNativeImage param that does just that, tries to detect if Graal was already executed during the current build. It could use some more testing, but it works with the projects I'm working on right now

@Lilianne-Blaze
Copy link
Contributor Author

#374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant