Hi I write a task to change the permission for node-js executable, following is the code:
task changeNodeJSPermissionOnLinux(type: Exec) {
onlyIf {
project.ext.isLinux
}
commandLine ‘chmod’, ‘755’, “${nodejs_executable}”
}
I am getting following error:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘projectA:changeNodeJSPermissionOnLinux’.
Caused by: org.gradle.process.internal.ExecException: Process ‘command ‘chmod’’ finished with non-zero exit value 1