Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Kwwebappscan

kwwebappscan scans a directory for Web applications and creates a build specification.

Usage

kwwebappscan [options] <directory_to_scan> <output_build_specification_file>

where

  • [options] are any of the options from the table below. If no options are specified, kwwebappscan uses the Apache Tomcat 7.0.76 application server packaged with Klocwork.
  • <directory_to_scan> is the directory containing Web applications
  • <output_build_specification_file> is the name for the output build specification file

Example

Apache Tomcat 6 is installed at C:\test\tomcat_6.0.14, and the webgoat.war file has been unpacked to C:\test\webgoat.war.unpacked. The following command creates a build specification for the unpacked webgoat:

kwwebappscan --appserver-name tomcat_6_0 --appserver-location C:\test\tomcat_6.0.14 C:\test\webgoat.war.unpacked buildspec1.out

Options

Name (and short name) Description
--help (-h) display this help
--version (-v) display version information
--appserver-name <server-name> name of the third-party application server that will perform the JSP compilation. Supported application servers:
  • Apache Tomcat 5.5 ("--appserver-name tomcat_5_5")
  • Apache Tomcat 6.0 ("--appserver-name tomcat_6_0")
  • Apache Tomcat 7.0 ("--appserver-name tomcat_7_0")
  • BEA Weblogic 10.0 ("--appserver-name weblogic_10_0")
--appserver-location <server-path> location of the application server that will perform JSP compilation. Specify the root directory of your application server installation (the directory containing the bin directory for your application server).
--extra-classpath <string> provides an extra classpath to the analysis engine. Specify the path to any additional jar files to ensure defects with cross-module dependencies are passed to java analysis.