thrown on Linux with VisualCpp installDir configured

I noticed that if you specify the installDir path with spaces for the VisualCpp tool chain, a is thrown when running that script on Linux.

Steps to Reproduce

  1. Take the samples/native-binaries/tool-chains/build.gradle sample file, and uncomment the // installDir "C:/Apps/Microsoft Visual Studio 10.0" line.
  2. Run that gradle script on a Linux machine
  3. You will receive the error message Illegal character in path at index 17: C:/Apps/Microsoft Visual Studio 10.0

I noticed this running Gradle 2.3 on a CentOS 6.5 32-bit machine.

Thanks Brian.

This also occurs on Mac OS X too. I raised GRADLE-3282 to track it.