When passed an argument with nested quotes, such as `'-DFOO="bar < baz"'`, the Unix Gradle wrapper script from version 3.2 fails because it tries to pipe input from the `baz` file - the argument is not correctly escaped.
`./gradlew '-DFOO="bar < baz"'` should escape its arguments correctly when executing Gradle
`./gradlew '-DFOO="bar < baz"'` fails with `No such file or directory` (assuming the `baz` file does not exist)
This pattern of nested quotes is produced by Jenkins' Gradle integration, and it will always contain a `<` when triggered by Gerrit integration. Our continuous integration is broken by this bug.
Steps to Reproduce (for bugs)
- Gradle Version: 3.2
- Last worked correctly in: 3.1
- Operating System: Arch Linux 64-bit
- JVM version: OpenJDK 1.8.0_112