From 2219b57717d55956a6eded8a4ab4c2963dcba786 Mon Sep 17 00:00:00 2001 From: Anton Keks Date: Thu, 20 Jan 2022 22:26:52 +0200 Subject: [PATCH] print contents of directory to see why exec doesn't work --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 68190659..cde3054c 100644 --- a/build.gradle +++ b/build.gradle @@ -296,7 +296,9 @@ task 'win-installer'(dependsOn: ['win32', 'win64']) { exec("wine $nsis/makensis.exe Installer/Installer.nsi", installerDir) } else { - exec(new String[] {"$nsis\\makensis.exe", "Installer\\Installer.nsi"}, installerDir) + println(exec("cmd /c dir"), installerDir, false) + println(exec("cmd /c dir $nsis"), installerDir, false) + exec("$nsis\\makensis.exe Installer\\Installer.nsi", installerDir) } ant.move(file: "${installerDir}/ipscan-${version}-setup.exe", todir: "build/libs") exec("git checkout ${installerDir}/InstallerConfig.nsh")