RFR: 8267059: Gradle :clean and :apps tasks fail on Windows if ANT_HOME contains spaces [v2]

Joeri Sykora sykora at openjdk.java.net
Fri Jan 7 09:16:18 UTC 2022


On Fri, 4 Jun 2021 05:04:17 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> This PR fixes an issue when building OpenJFX on Windows and command-line arguments contain paths with spaces.
>> 
>> The problem is that on Windows, `ant` is invoked via `cmd`, which leads to quotes being interpreted twice. This can be fixed with the option `cmd /s`, which prevents interpreting quotes on the rest of the command line. The result is as if the rest of the command line had been typed verbatim at the command prompt.
>
> Michael Strauß has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
> 
>  - Merge branch 'master' into fixes/JDK-8267059
>  - Use cmd /s option when building on Windows

Marked as reviewed by sykora (Author).

I've tested these changes and I can confirm that it works as expected.

-------------

PR: https://git.openjdk.java.net/jfx/pull/499


More information about the openjfx-dev mailing list