public final class SonargraphBuildRunner extends Object implements ISonargraphBuildClient
Constructor and Description |
---|
SonargraphBuildRunner() |
Modifier and Type | Method and Description |
---|---|
void |
error(String msg) |
ServiceResponse |
executeSequence(File config) |
String |
getClientName() |
File |
getDefaultOutputDirectory() |
ISonargraphBuild.Version |
getVersion() |
void |
info(String msg)
Log an informational message regarding progress
|
static void |
main(String[] args)
Executes the following actions:
Starts SonargraphBuild
Opens software system
Refreshes software system
Sets virtual model
Creates report
Creates snapshot if at least one of snapshotDirectory or snapshotFileName are specified
Checks for issues (if specified)
Terminates normally, if no error occurs during operation.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProxyFactory
public String getClientName()
getClientName
in interface ISonargraphBuildClient
public void info(String msg)
ILogger
public File getDefaultOutputDirectory()
getDefaultOutputDirectory
in interface ISonargraphBuildClient
public ISonargraphBuild.Version getVersion()
getVersion
in interface ISonargraphBuildClient
public ServiceResponse executeSequence(File config) throws Exception, SonargraphBuildException
Exception
SonargraphBuildException
public static void main(String[] args)
<sonargraphBuild
activationCode="_your activation code_"
licenseFileLocation="path to your license file"
languages="Java"
installationDirectory="../.."
systemDirectory="../javaProject/AlarmClock.sonargraph"
virtualModel="Modifiable.vm"
reportDirectory="./_temp/report"
reportFileName=""
reportType="full"
reportFormat="xml,html"
snapshotDirectory=""
snapshotFileName="AlarmClock_Snapshot"
proxyHost=""
proxyPort=""
proxyUsername=""
proxyPassword=""
logLevel="warn">
<failSet failOnEmptyWorkspace="false">
<include issueType="any" severity="error" resolution="none"/>
<exclude issueType="ScriptCompilationError" resolution="none"/>
<include issueType="any" severity="warning"/>
<include issueType="ArchitectureViolation"/>
<exclude issueType="Supertype uses subtype" resolution="none"/>
<exclude issueType="ThresholdViolation"/>
</failSet>
</sonargraphBuild>
args
- Path to the configuration file is expected as the only parameter.