title: Gradle exec commandLine not working for me
body: <p>I am trying to run an executable with arguments from gradle:</p>
  
  <pre><code>task deploy(dependsOn: jar) {
      exec {
          commandLine "javafxpackager -deploy -native -outdir ${deployDirName} -outfile ${jarBaseName} -srcfiles ./${project.buildDir}/${project.libsDirName}/${jarBaseName}-${project.version}.jar -appclass ${mainClass} -name ${jarBaseName} -title '${project.description}'"
      }
  }
  </code></pre>
  
  <p>Gradle complains that the process ended up with non-zero return code, but if I copy the command and run it within bash terminal, it works flawlessly. </p>
  
  <p>So what am I doing wrong?</p>
  
  <p>Regards,</p>