Wiki source code of Project Wonder Properties Files
Version 43.1 by Ken Ishimoto on 2013/01/09 16:06
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. 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 | ||
22 | 1. Properties in /etc/WebObjects/YourAppName/ | ||
23 | 1. Resources/Properties.username in the application itself | ||
24 | 1. Command line arguments | ||
25 | |||
26 | === Getting Started: === | ||
27 | |||
28 | [[About the Properties File>>documentation:About the Properties file]] | ||
29 | |||
30 | * Variable substitution | ||
31 | * Per user property files | ||
32 | |||
33 | === Available Properties: === | ||
34 | |||
35 | * DB Properties | ||
36 | * ERExtensions Properties | ||
37 | * Ajax Properties | ||
38 | |||
39 | === Note: To set development mode === | ||
40 | |||
41 | Add the following property: | ||
42 | er.extensions.ERXApplication.developmentMode = true (true by default when running Wolips) | ||
43 | To turn off development mode: | ||
44 | er.extensions.ERXApplication.developmentMode = false |