Quantcast

What sort of comments are allowed in ~/.gradle/gradle.properties files

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

What sort of comments are allowed in ~/.gradle/gradle.properties files

Russel Winder-2
It seems that if I use:

# . . .

as a comment I get a exception and stack trace, and if I use:

// . . .

I get // entries listed in the properties when running gradle -r

The implication is that comments are not expected in
~/.gradle/gradle.properties which is clearly wrong.

Thanks.

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: [hidden email]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[hidden email]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: What sort of comments are allowed in ~/.gradle/gradle.properties files

hansd
This is the gradle.properties file of the gradle build.

#properties
#Mon Nov 16 07:56:40 EST 2009
previousVersion=0.8
nextVersion=0.9

See the javadoc of java.util.Properties.load for what is considered a comment.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


On Tue, Dec 15, 2009 at 8:47 AM, Russel Winder <[hidden email]> wrote:
It seems that if I use:

# . . .

as a comment I get a exception and stack trace, and if I use:

// . . .

I get // entries listed in the properties when running gradle -r

The implication is that comments are not expected in
~/.gradle/gradle.properties which is clearly wrong.

Thanks.

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                           xmpp: [hidden email]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: [hidden email]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

Loading...