| JHawk Command Line | |||||||
| Product Home | Application | Eclipse Plugin | Command Line | Metrics Guide | Download Free Trial | FAQ, News, Bugs | Other Products |
JHawk Command LineJHawk also comes with a command line interface which is accessed using the JHawkCommandLine jar which is included in the ...\code directory of your distribution. A summary of the commands will be shown if you run -
The full syntax of the command line is -
java -jar VMJHawkCommandLine.jar [-c csvfile] [-p propertiesfile] [-d directories] [-f files] [-h htmlfile] [-l levels] [-n name] [-r] [-s startpath] [-x
excludedirectories] [-xf excludedfiles]
To ensure that there is adequate memory and stack space you should include the following after the java command in the command line -
-Xss1m -Xms64m -Xmx512m
The arguments -
directories, files, excludedfiles and excludeddirectories
are all regular expressions. If you want to know more about regular expressions in Java then you should look here - http://java.sun.com/docs/books/tutorial/extra/regex/
File selection
The File selection criteria allow you to select and exclude files and directories based on regular expressions. The regular expressions are tested against the full pathname of each file. So if your expression for excluded files is .*FullTest*java then you will exclude C:\Test\java\bin\com\company\package\FullTest.java and D:\javasdk1.2\bin\com\anothercompany\package\FullTest.java. If your expression simply reads FullTest*java then neither will be excluded.
Output files
Output detail
Other Commands