[GRADLE-3282] Java.net.URISyntaxException thrown on Linux with VisualCpp installDir configured Created: 16/Apr/15  Updated: 02/Feb/17  Resolved: 02/Feb/17

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Sterling Greene Assignee: Unassigned
Resolution: Duplicate Votes: 0


 Description   

I noticed that if you specify the installDir path with spaces for the VisualCpp tool chain, a java.net.URISyntaxException 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 `java.net.URISyntaxException: 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.

http://discuss.gradle.org/t/java-net-urisyntaxexception-thrown-on-linux-with-visualcpp-installdir-configured/9137



 Comments   
Comment by Benjamin Muschko [ 15/Nov/16 ]

As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub.

We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to.

Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:

  • Checking that your issues contain requisite context, impact, behaviors, and examples as described in our published guidelines.
  • Leave a comment on the JIRA issue or open a new GitHub issue confirming that the above is complete.

We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle!

Comment by Phil McArdle [ 15/Nov/16 ]

This is still current for me using the same repro.

Tested today on Debian Jessie / Stable 8.6 x64, Gradle 3.1

I'm assuming that since it's dev-reported that one of you will carry it over to GitHub

Comment by Sterling Greene [ 02/Feb/17 ]

Migrated https://github.com/gradle/gradle/issues/1308

Generated at Wed Jun 30 12:44:45 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.