Doc bug with turning off daemon in a .bat file

not-a-bug

(jbaranski) #1

https://docs.gradle.org/current/userguide/gradle_daemon.html#daemon_faq

(if not exist "%USERPROFILE%/.gradle" mkdir "%USERPROFILE%/.gradle") && (echo org.gradle.daemon=false >> "%USERPROFILE%/.gradle/gradle.properties")

This will break an existing gradle.properties file if it exists, contains other properties, and there is no new line at the end of the file.

Here is what I did to fix this:

(if not exist "%USERPROFILE%/.gradle" mkdir "%USERPROFILE%/.gradle") && (echo. >> "%USERPROFILE%/.gradle/gradle.properties" && echo org.gradle.daemon=false >> "%USERPROFILE%/.gradle/gradle.properties")


(Stefan Wolf) #2

Hi,

thanks for pointing that out. Would you be interested in opening a pull request for fixing the documentation?

Cheers,
Stefan


(jbaranski) #3

Yeah I can do that this weekend, I’ll give you a heads up after it’s submitted.


(jbaranski) #4