org.zkoss.zk.config.path
From Documentation
Property:
org.zkoss.zk.config.path
Default: none [since 5.0.6]
It specifies the second configuration file in addition to WEB-INF/zk.xml. It is useful if you have two or more environments, such as testing and production. Then, you could put the different configuration into separated files and load the required based on the requirement.
The value could be one of the following:
- A servlet path, such as
/WEB-INF/config/zk-extra.xml
- A file path, such as
file:/home/http/zk.xml
andfile:/C:/test/zk.xml
, if Windows. Notice it must start withfile:/
- A URL, such as
http://foo.com/config/zk.xml
. Notice it must starts withhttp://
,https://
, andftp://
.
For example, assume you put the configuration in a file called /configs/zk-production.xml, then you could specify -Dorg.zkoss.zk.config.path=file:/configs/zk-production.xml as one of the arguments when starting the Web server.
Version History
Version | Date | Content |
---|---|---|
5.0.7 | April, 2011 | Introduced |