I’m trying to use IntelliJ 2022.1.3 installed on Windows with the project workspace and gradle user home location under my WSL user account home. I’m using the Gradle wrapper version 7.4, Adoptium JDK 17.0.3 to build and it appears that during application start script or spring boot start script generation it attempts to run a chmod operation delegated to ant and I think it has a problem finding the chmod command. I’m wondering if there’s anything special we need to do with the ant integration in order to get this to work?
2022-06-23T17:18:55.426-0400 [DEBUG] [org.gradle.api.internal.tasks.execution.TaskExecution] Executing actions for task ':myproject:bootStartScripts'.
2022-06-23T17:18:55.457-0400 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Adding reference: ant.PropertyHelper
2022-06-23T17:18:55.457-0400 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Detected Java version: 17 in: /home/myusername/.sdkman/candidates/java/17.0.3-tem
2022-06-23T17:18:55.457-0400 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Detected OS: Linux
2022-06-23T17:18:55.457-0400 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Adding reference: ant.ComponentHelper
2022-06-23T17:18:55.458-0400 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Project base dir set to: /home/myusername/.gradle/daemon/7.4
2022-06-23T17:18:55.458-0400 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] FileSet: Setup scanner in dir \\wsl$\Ubuntu-20.04\home\myusername\projects\myproject\build\bootScripts with patternSet{ includes: [myproject] excludes: [] }
2
2022-06-23T17:18:55.458-0400 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:null] Executing 'chmod' with arguments:
'ugo+rx'
'\\wsl$\Ubuntu-20.04\home\myusername\projects\myproject\build\bootScripts\myproject'
The ' characters around the executable and arguments are
not part of the command.
2022-06-23T17:18:55.458-0400 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Execute:Java13CommandLauncher: Executing 'chmod' with arguments:
'ugo+rx'
'\\wsl$\Ubuntu-20.04\home\myusername\projects\myproject\build\bootScripts\myproject'
...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':myproject:bootStartScripts'.
> Execute failed: java.io.IOException: Cannot run program "chmod" (in directory "/home/myusername/.gradle/daemon/7.4"): error=2, No such file or directory