[GRADLE-1871] Parsing bug in org.gradle.wrapper.GradleWrapperMain Created: 26/Oct/11 Updated: 04/Jan/13 Resolved: 07/Nov/11
|Reporter:||Blaine Simpson||Assignee:||Luke Daley|
"gradle" Bourne script and org.gradle.launcher.GradleMain work just fine.
org.gradle.wrapper.GradleWrapperMain.main(), invoked directly or by "gradlew" Bourne script, when given any command line -P switch with no space between the switch and the name=value and with a capital D in the property name, causes the following (completely wrong) message and exception:
Following both work fine:
Works fine even if I add on multiple -P switches and task arguments.
Cause the problem by adding a capital D anywhere in the property name. All of the following cause GradleWrapperMain to barf:
I can find the coding mistake if you like, but I don't have the time to waste if you will ignore my submittal.
|Comment by Darren Evenson [ 03/Nov/11 ]|
I would add that the capital D can be in either the property name or the value. This command fails with the same error:
gradlew -PtargetEnvironment=DEV serverProject:tomcatDeploy
However this command works:
gradlew -PtargetEnvironment=dEV serverProject:tomcatDeploy
|Comment by Blaine Simpson [ 03/Nov/11 ]|
Thanks Darren. I thought to test that too, a couple times, but never remembered it when I had a computer before me.