akhikhl / wuff

Gradle plugin for automating assembly of OSGi/Eclipse bundles and applications
MIT License
153 stars 51 forks source link

Wraps jars in Windows native executables #44

Closed philippwaller closed 9 years ago

philippwaller commented 9 years ago

Is there any way to wraps (automatically) the output jar in a Windows *.EXE file. I am not very happy with the batch solution because of the visible command promp.

Thanks in advance

akhikhl commented 9 years ago

Technically yes, it is possible. Not yet implemented. I'll see to implementing it in next version.

mcmil commented 9 years ago

Additionally, I think it is important to handle the exit codes from Equinox. Currently, I create another .bat (used for starting the application) which checks if the original application returned 23 as the exit code - which means that equinox wants to be restarted. This is normally the responsibillity of the native exe wrapper from eclipse. You can try it out from the E4 by calling IWorkbench.restart().

I've also given a shot of some bat2exe apps - but unfortunately most antiviral software has issues with those. IT departments are not happy with that.

ylemoigne commented 9 years ago

@akhikhl Thanks