alexdobre / RDL_Google_Tech

Java for the Google technology code
0 stars 0 forks source link

Add environment.properties file update maven to build depending on environment #61

Open alexdobre opened 11 years ago

alexdobre commented 11 years ago

We need some variables in our application that are environment dependent. To do this I suggest we create properties files for each environment and use maven to copy the right environment file depending on the arguments we give it during build.

Place the following files in our project source code:

environment.properties_local environment.properties_test environment.properties_acc environment.properties_prod

Place the first item in this file: environment.url=???

For the production environment the value of this parameter will be: environment.url=www.therdl.com

For local please use your localhost url. Test can be our amazon server url and acceptance we skip cause we don't have such an environment yet.

Use this parameter when building the link for the bookmarkable search (see the relevant issue)