-
Notifications
You must be signed in to change notification settings - Fork 0
Options
The Aggregator supports the setting of server-wide options through the use of a properties file named aggregator.properties in the home directory of the user that launched the server (the default), or in a properties file named using the options servlet init-param.
The following options may be specified in the properties file, or set while the server is running using the setprop console command.
| Option name | Description |
|---|---|
| developmentMode |
Development mode enables the following features:
|
| debugMode |
Debug (and development) mode enables the following features:
|
| disableHasFiltering | If true, then the aggregator will not perform has.js feature trimming of javascript code. The default value is false. |
| disableRequireListExpansion | If true, then the dependency lists in require() calls will not be expanded to include nested dependencies even if dependency list expansion was specified in the request. The default value is false. |
| deleteDelay | Specifies the delete delay timeout. This is the amount of time, in seconds, to wait before deleting cache files from the file system after a cache file is no longer needed. The purpose of delaying the deletion of cache files is to allow all request threads that may be using the file to complete before the file is removed. The default value is 3 minutes, however, expired cache files may be deleted before the deleteDelay timeout has expired if the server is shut down. |
| verifyDeps | If true, then the server will verify the declared dependencies of AMD modules against the stored dependencies that were used to build the module dependency graph used in require list expansion, whenever a module is built/compiled and development mode is enabled. The default value is true. Set this option to false to disable verification of declared dependencies when development mode is enabled. |
| cacheDirectory |
Specifies a directory on the server that will be used for the Aggregator cache. If not specified, then the state location for the bundle defining the Aggregator servlet is used. Note: If you specify a Microsoft Windows based file system path using forward slashes, be sure to escape them (e.g. c:\\temp) or they won't be read properly. Alternatively, you may specify path separators using the back slash on any OS platform. |
The Aggregator supports the following console commands relating to server options:
aggregator getoptions - Lists the currently defined options and their values.
aggregator setoption <propname> <propvalue> - Persistently sets the specified option to the specified value (aggregator.properties is updated)