Wiki source code of Project Wonder Properties Files
Version 37.1 by Greg.Brown on 2009/09/30 08:52
Show last authors
author | version | line-number | content |
---|---|---|---|
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 | |||
3 | === Precedence === | ||
4 | |||
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) | ||
11 | 1. Resources/Properties.dev (when app is launched in Development Mode | ||
12 | 1. Properties in /etc/WebObjects/YourAppName/ | ||
13 | 1. Resources/Properties.username in the application itself | ||
14 | 1. Command line arguments | ||
15 | |||
16 | === Property File tricks and tips: === | ||
17 | |||
18 | * Variable substitution | ||
19 | * Per user property files | ||
20 | |||
21 | === Available Properties: === | ||
22 | |||
23 | * DB Properties | ||
24 | * ERExtenstions Properties | ||
25 | * Ajax Properties | ||
26 | |||
27 | === Note: To set development mode === | ||
28 | |||
29 | Add the following property: | ||
30 | er.extensions.ERXApplication.developmentMode = true (true by default?) | ||
31 | To turn off development mode: | ||
32 | er.extensions.ERXApplication.developmentMode = false |