diff --git a/src/main/groovy/org/beryx/jlink/impl/JPackageTaskImpl.groovy b/src/main/groovy/org/beryx/jlink/impl/JPackageTaskImpl.groovy index 43cfbc39..4950206d 100644 --- a/src/main/groovy/org/beryx/jlink/impl/JPackageTaskImpl.groovy +++ b/src/main/groovy/org/beryx/jlink/impl/JPackageTaskImpl.groovy @@ -63,7 +63,7 @@ class JPackageTaskImpl extends BaseTaskImpl { return standardOutput.toString() } if (td.jpackageData.getImageOutputDir() != td.jpackageData.getInstallerOutputDir()) { - FileUtils.cleanDirectory(td.jpackageData.getInstallerOutputDir()) + project.delete(project.files(td.jpackageData.getInstallerOutputDir())) } def jpackageExec = "$jpd.jpackageHome/bin/jpackage$EXEC_EXTENSION"