sslavic
(Stevo Slavić)
April 9, 2014, 2:24pm
1
I couldn’t find information about restrictions on project property values in the user guide at http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html#sec:gradle_properties_and_system_properties
I’m experiencing issue with a project property whose value has a dot character (actually few of them). Everything before first dot is used as value, and first dot and everything after it seems to be ignored. More details can be found at http://search-hadoop.com/m/4TaT4AEzmA1&subj=Building+Kafka+0+8+1+branch+with+specific+Scala+version
Btw, I’m using Gradle 1.10, GRADLE-3052 is preventing me from using 1.11
Any String will do. Note that ‘-P’ will create a new dynamic property; it can’t be used to directly set predefined Gradle object model properties (e.g. ‘project.version’).
sslavic
(Stevo Slavić)
April 9, 2014, 2:41pm
3
Hm, it works well when property is defined in gradle.properties, but not when it’s set through CLI, with -P switch
Works fine for me. If the value contains special characters of your shell, don’t forget to escape them.
sslavic
(Stevo Slavić)
April 9, 2014, 3:21pm
5
Ah, it works in regular Windows command prompt, but doesn’t work in posh-git shell which comes with GitHub for Windows… Thanks Peter!