orphan-oss / launch4j-maven-plugin

A Maven plugin which wraps Launch4j
Other
368 stars 71 forks source link

Option to skip if Graal already made exe #374

Open Lilianne-Blaze opened 5 months ago

Lilianne-Blaze commented 5 months ago

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