mojohaus / appassembler

https://www.mojohaus.org/appassembler/
MIT License
93 stars 49 forks source link

DefaultScriptGenerator binFolder always null #41

Open activey opened 8 years ago

activey commented 8 years ago

Hey,

I'm using 1.10 version of your maven plugin and I'm trying just to generate daemon scripts for unix platform. No matter what I put in configuration I keep getting NullPointerException in DefaultScriptGenerator in method createBinScript. It seems that String binFolder method parameter is always null :( :( :(

khmarbaise commented 8 years ago

Can you make a working example project with the configuration you have which does not work...and make best a github project with or attach it to a comment here...

BowiFromStackOverflow commented 7 years ago

Here is a minimal working example. The problem seems to not only affect creating unix daemon scripts but windows scripts as well.

BowiFromStackOverflow commented 7 years ago

Giving a default value to binFolder in DaemonGenerationRequest circumvents the issue:

 private String binFolder = "bin";
activey commented 7 years ago

@BowiFromStackOverflow yup, this is how I've fixed it locally ;)