Working with 2 properties files


(Ndovan radytch) #1

i want to create 2 gradle.properties files :

  1. with the general setting like today
  2. with personal data that user for example can put
    his user/pass and so on.
    can it be done?

(uklance) #2

See Gradle Properties

You can put one gradle.properties file in project root directory and another in GRADLE_USER_HOME directory.


(Ndovan radytch) #3

i am on windows
i don’t think i ever defined GRADLE_USER_HOME.

  1. where should it point on local disk?
  2. how do i read from this file and how from the file on the project?

(Ndovan radytch) #4

if i put the file in the user home directory as i see in documentation
it won’t take the one from the project root directory