The build.properties
file is a key-value flat file where you store information like your username
, password
, and Salesforce instance URL. Note that because this file contains your password, you should ensure that it's never committed to source control. Here's an example of a build.properties
file:
# build.properties build.dir=/Users/codefriar/src/AmazingPandas/ #sf target credentials [email protected] sftarget.password=SuperS3kr3tP@ssw0rd+0k3n sftarget.serverurl=https://login.salesforce.com sftarget.runAllTests=false #sf source credentials sfsource.username= [email protected] sfsource.password=Like1'dPubl1$hThat sfsource.serverurl=https://test.salesforce.com #local properties source.dir=${build.dir}/src source.metadata=${build.dir}/package.xml #Git branch to pull From (default is master) git.branch=master
Conceptually, this file is much simpler! Each of these lines specifies a key (for instance, build.dir
),...