Gradle Version: 2.12, 2.14, 3.0
Operating System and JVM version: Windows 10 x64, JDK 8
Is this a regression? If yes, which version of Gradle do you know it last worked for? Not a regression
This is related to open bug GRADLE-1577.
Gradle does not account for items in the classpath of a JavaExec task that contain spaces in their paths. Thus, running the command fails in windows because it incorrectly interprets the end of the classpath at the first space encountered.
Possible fix would be to use the CollectionUtils.asCommandLine()
to handle transforming this classpath into a safe commandline argument before outputting it as part of the list of all JVM args in JavaExecHandleBuilder