Skip to content

Commit 6fa2901

Browse files
committed
Add check if additional was configured
1 parent e911e26 commit 6fa2901

File tree

1 file changed

+4
-2
lines changed
  • src/main/java/org/gradlex/javamodule/packaging/tasks

1 file changed

+4
-2
lines changed

src/main/java/org/gradlex/javamodule/packaging/tasks/Jpackage.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ public void runJpackage() throws Exception {
196196
);
197197
if (getSingleStepPackaging().get()) {
198198
configureJPackageArguments(e, resourcesDir);
199-
for (File appContent : requireNonNull(appRootFolder.listFiles())) {
200-
e.args("--app-content", appContent.getPath());
199+
if (appRootFolder.exists()) {
200+
for (File appContent : requireNonNull(appRootFolder.listFiles())) {
201+
e.args("--app-content", appContent.getPath());
202+
}
201203
}
202204
} else {
203205
e.args("--app-image", appImageFolder.getPath());

0 commit comments

Comments
 (0)