title: Gradle Exec task - params with spaces aren't surrounded using quotes
body: <p>I've got problem with spaces in gradle exec task - params with spaces aren't surrounded using quotes.</p>
  
  <p>For example lets create this simple project (created on windows)</p>
  
  <p><em>C:\dir with spaces\build.gradle</em> // it's very important to put project into directory which path contains spaces</p>
  
  <pre><code>task execTest(type: Exec) {
      def runFromGradle = new File(projectDir, 'runFromGradle.bat').getAbsolutePath()
      commandLine 'cmd', '/C', runFromGradle, projectDir.absolutePath
      // commandLine 'cmd', '/C', '"'+runFromGradle+'"', '"'+projectDir.absolutePath+'"' // it also doesn't work
  }
  </code></pre>
  
  <p><em>C:\dir with spaces\build.gradle\runFromGradle.bat</em></p>
  
  <pre><code>dir "%1"
  </code></pre>
  
  <p>After I run this project using <code>gradle execTest</code>, cmd returns this error <code>'C:\dir' is not recognized as an internal or external command, operable program or batch file</code>. I've tried to use ant.exec and put paths in quotes but without success. Project works fine if I'll change first parameter (runFromGradle) from absolute path to relative but I don't want to do it in this way.</p>
  
  <p>In our real project we use command line with numbers of command line parameters that contains spaces.</p>
  
  <p>I use gradle 1.6.</p>