4.2.4. cfgview

Description

Display revision of a configuration file in a deployed bundle.

Usage

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.

Ant Usage

<bw.cfview path="${path}" config="${config}" revision="${revision}" />

Examples

# 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

Notes

  • 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