Display revision of a configuration file in a deployed bundle.
bw cfgview PATH FILE REV (or NAME cfgview FILE REV)
- PATH points to a deployed bundle (not needed when action is called using the deployed bundle's NAME)
- FILE is the name of a configuration file inside that deployment.
- REV is the revision to display.
<bw.cfview path="${path}" config="${config}" revision="${revision}" />
# View revision 2 of server.xml for the current tomcat
tomcat cfgview server.xml 2
# View revision 4 of helloserver.properties
# for a specific deployment of the helloserver bundle
bw cfgview /local/dev/helloserver helloserver.properties 4
- The contents of the configuration file are sent to standard out. You can redirect the output of this command to write the configuration to a file.
- The cfgrestore commmand can be used to replace the current configuration with an earlier revision