Class SonargraphBuildRunner
java.lang.Object
com.hello2morrow.sonargraph.build.client.SonargraphBuildRunner
- All Implemented Interfaces:
ILogger,ISonargraphBuildClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog an error message regarding progressvoidLog an informational message regarding progressstatic voidExecutes 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hello2morrow.sonargraph.build.client.ISonargraphBuildClient
getProxyFactory
-
Constructor Details
-
SonargraphBuildRunner
public SonargraphBuildRunner()
-
-
Method Details
-
getClientName
- Specified by:
getClientNamein interfaceISonargraphBuildClient
-
info
Description copied from interface:ILoggerLog an informational message regarding progress -
error
Description copied from interface:ILoggerLog an error message regarding progress -
getDefaultOutputDirectory
- Specified by:
getDefaultOutputDirectoryin interfaceISonargraphBuildClient
-
getProjectDirectory
- Specified by:
getProjectDirectoryin interfaceISonargraphBuildClient
-
getVersion
- Specified by:
getVersionin interfaceISonargraphBuildClient
-
main
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)
Sample configuration file:
<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="info" progressInfo="detailed"> <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>- Parameters:
args- Path to the configuration file is expected as the first parameter. The second parameter specifies the operation, i.e. "createReport" (default) or "resendFailedUploads".
-