Skip to content

Commit 7e15716

Browse files
committed
U some bug fixes
1 parent f4cc6b5 commit 7e15716

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/main/java/fvarrui/maven/plugin/javapackager/PackageMojo.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,7 @@ private Map<String, Object> getInfo() throws MojoExecutionException {
245245
info.put("bundleJre", bundleJre);
246246
info.put("mainClass", mainClass);
247247
info.put("jarFile", jarFile.getName());
248-
249-
// if license file exists
250-
if (licenseFile != null) {
251-
info.put("license", licenseFile.getAbsolutePath());
252-
}
248+
info.put("license", licenseFile != null ? licenseFile.getAbsolutePath() : "");
253249

254250
return info;
255251
}
@@ -454,7 +450,8 @@ private void createWindowsExecutable() throws MojoExecutionException {
454450
),
455451
goal("launch4j"),
456452
configuration(config.toArray(new Element[config.size()])),
457-
env);
453+
env
454+
);
458455
}
459456

460457
private void generateWindowsInstaller() throws MojoExecutionException {

0 commit comments

Comments
 (0)