All tools (code check, dependency analysis, metrics analysis and inventory) can be executed separately on the command line. SPCAF comes with the following command line tools:
|Command line tool||Description|
|spcaf.exe||All analysis types|
Run analysis on command line
The command line tools can be found in the installation directory of SPCAF (typically 'C:\Program Files (x86)\SPCAF\'). Open the command prompt and switch to the SPCAF installation directory. Running one of the command line tools without arguments shows the following information:
NOTE: The SPCAF command line tools cannot be started from a DOS command path, e.g. 'C:\progra~2\SPCAF\spcop.exe'. Always use the windows path 'C:\Program Files (x86)\SPCAF\spcop.exe'.
Start one of the command line tools with the following arguments:
|r, report||Report generator that will be used to generate the output file. Visual Studio compatible console output will be generated regardless of this argument.
|o, output||Output file with processed data when a report generator is specified.
|i, inputfiles||Required. WSP files that should be included in the analysis. WSP files can be separated by a semicolon;
|f, filters||List of regular expressions, separated by semicolon which is applied as filters for the input files. Helpful if argument input files is a directory. Only the input files which match the filter are analyzed.
Name of SPCAF ruleset file. Possible ruleset files are stored in the installation folder of SPCAF, folder "RuleSets".
|t, tempdir||Directory into which all temporary files are extracted.
|l, logfile||Path where the log file should be written to.
|v, verbosity||Specifies the amount of information to display in the output window:
Set to true to scan input folder recursively for analyzable files.
|p, skipprojectcreation||Set to true to skip creation of a .spaf project file.|
|help||Display this help screen.|
|a, about||Display information about the software.|
The following command runs a code check for all WSP files in folder 'C:\wspfiles' and will create in directory 'C:\outputdir\' the 2 reports 'outputfilename.html' and 'outputfilename.xml'.