appassembler icon indicating copy to clipboard operation
appassembler copied to clipboard

DefaultScriptGenerator binFolder always null

Open activey opened this issue 8 years ago • 4 comments

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 :( :( :(

activey avatar Jun 10 '16 10:06 activey

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...

khmarbaise avatar Jun 10 '16 19:06 khmarbaise

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

BowiFromStackOverflow avatar Dec 07 '16 10:12 BowiFromStackOverflow

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

 private String binFolder = "bin";

BowiFromStackOverflow avatar Dec 08 '16 10:12 BowiFromStackOverflow

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

activey avatar Dec 08 '16 12:12 activey