Last modified by Theodore Petrosky on 2013/05/22 12:01

Hide last authors
Philippe Rabier 15.1 1 === This Page will serve as a base location for talking about what can be done with the Properties files using Project Wonder and what properties are available etc. ===
2
Greg.Brown 33.1 3 === Precedence ===
Philippe Rabier 15.1 4
Greg.Brown 33.1 5 When the application launches, Properties files will be loaded in the following order. If there is a conflicting parameter between the files and arguments, the latter one overrides the earlier one.
6
7 1. Resources/Properties in any frameworks that the application links to
8 1. Resources/Properties.username in any frameworks that the application links to
9 1. Resources/Properties in the application itself
10 1. WebObjects.properties under the home directory (not sure on this file's precedence)
Gavin Eadie 39.1 11 1. Resources/Properties.dev (when app is launched in Development Mode)
Ken Ishimoto 43.1 12 1. Resources/Properties.log4j in the application itself (log4j properties)
13 1. Resources/Properties.log4j.username in the application itself
14 1. Resources/Properties.database in the application itself (database connection properties)
15 1. Resources/Properties.database.username in the application itself
16 1. Resources/Properties.multilanguage in the application itself (encoding properties)
17 1. Resources/Properties.multilanguage.username in the application itself
18 1. Resources/Properties.migration in the application itself (migration properties)
19 1. Resources/Properties.migration.username in the application itself
20 1. Resources/Properties.frameworkname in the application itself for any frameworks that the application links to
21 1. Resources/Properties.frameworkname.username in the application itself for any frameworks that the application links to
Greg.Brown 33.1 22 1. Properties in /etc/WebObjects/YourAppName/
23 1. Resources/Properties.username in the application itself
24 1. Command line arguments
25
Philippe Rabier 45.1 26 Regarding the properties in /etc/WebObjects, YourAppName is the name you define in the Monitor, not the the .woa name. And ERXProperties.pathsForUserAndBundleProperties() looks up **only** the "Properties" file name. So your folder can contain only 1 file.Regarding the properties in /etc/WebObjects, YourAppName is the name you define in the Monitor, not the the .woa name. And ERXProperties.pathsForUserAndBundleProperties() looks up **only** the "Properties" file name. So your folder can contain only 1 file.
27
David Avendasora 41.1 28 === Getting Started: ===
Greg.Brown 33.1 29
Theodore Petrosky 46.1 30 [[About the Properties File>>doc:documentation.Home.WOLips Tutorials.About the Properties file.WebHome]]
David Avendasora 41.1 31
32 * Variable substitution
Philippe Rabier 15.1 33 * Per user property files
34
Greg.Brown 33.1 35 === Available Properties: ===
Philippe Rabier 15.1 36
37 * DB Properties
Gavin Eadie 39.1 38 * ERExtensions Properties
Philippe Rabier 15.1 39 * Ajax Properties
Greg.Brown 37.1 40
41 === Note: To set development mode ===
42
43 Add the following property:
Philippe Rabier 45.1 44 er.extensions.ERXApplication.developmentMode = true (true by default when running Wolips)
45 To turn off development mode:
46 er.extensions.ERXApplication.developmentMode = false