Skip to content

Commit

Permalink
Added support for unwrapped jar
Browse files Browse the repository at this point in the history
The jar file must not be added to the launch4j config if dontWrapJar is
enabled. Otherwise it would result in a

net.sf.launch4j.BuilderException: Specify runtime path of the jar relative
to the executable.
  • Loading branch information
renelink committed May 1, 2017
1 parent 9838782 commit 840d40a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,11 @@ public void execute() throws MojoExecutionException {

c.setHeaderType(headerType);
c.setOutfile(outfile);
c.setJar(getJar());

if(!dontWrapJar){
c.setJar(getJar());
}

c.setDontWrapJar(dontWrapJar);
c.setErrTitle(errTitle);
c.setDownloadUrl(downloadUrl);
Expand Down

0 comments on commit 840d40a

Please sign in to comment.