Changes for page Best Practices-Properties Files
Last modified by Markus Ruggiero on 2025/10/24 16:07
From version 27.1
edited by Ray Kiddy
on 2009/07/29 13:11
on 2009/07/29 13:11
Change comment:
There is no comment for this version
To version 30.1
edited by Markus Ruggiero
on 2025/10/24 16:07
on 2025/10/24 16:07
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,0 +1,1 @@ 1 +documentation.Home.Best Practices.WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. kiddyr1 +XWiki.ruggiero - Content
-
... ... @@ -4,7 +4,7 @@ 4 4 5 5 You can have any number of **Properties.username** files in your project's Resources directory in-addition-to the default **Properties** file. These Properties.username files will automatically load based on which user is launching the application. This allows you to have custom logging, email, database, etc configuration settings for each developer. 6 6 7 -This capability can also be (ab)used in combinination with the Launch parameter **Duser.name** to specify Production vs Staging/Development properties. For example: a launch parameter of **Duser.name=deployment** will cause **Properties.deployment** to be read when the application in launched. 7 +This capability can also be (ab)used in combinination with the Launch parameter **-Duser.name** to specify Production vs Staging/Development properties. For example: a launch parameter of **-Duser.name=deployment** will cause **Properties.deployment** to be read when the application in launched. 8 8 9 9 This can be very useful for automatically changing database connection configurations based on whether or not an application is being run in Production or Development. 10 10 ... ... @@ -18,8 +18,7 @@ 18 18 19 19 ==== Model-Specific Connection Properties ==== 20 20 21 -{{noformat}} 22 - 21 +{{code}} 23 23 MyEOModel.URL = 24 24 MyEOModel.DBUser = 25 25 MyEOModel.DBPassword = ... ... @@ -26,19 +26,16 @@ 26 26 MyEOModel.DBDriver = 27 27 MyEOModel.DBPlugin = 28 28 MyEOModel.DBJDBCInfo = 28 +{{/code}} 29 29 30 -{{/noformat}} 31 - 32 32 ==== Global Connection Properties ==== 33 33 34 34 These settings will allow you to set the connection properties for all the EOModels in your project. 35 35 36 -{{noformat}} 37 - 34 +{{code}} 38 38 dbConnectURLGLOBAL = 39 39 dbConnectUserGLOBAL = 40 40 dbConnectPasswordGLOBAL = 41 41 dbConnectDriverGLOBAL = 42 42 dbEOPrototypesEntityGLOBAL = 43 - 44 -{{/noformat}} 40 +{{/code}}