org.sonar.runner.api
Class Runner<T extends Runner>

java.lang.Object
  extended by org.sonar.runner.api.Runner<T>
Direct Known Subclasses:
EmbeddedRunner, ForkedRunner

public abstract class Runner<T extends Runner>
extends Object

Since:
2.2

Constructor Summary
protected Runner()
           
 
Method Summary
 T addProperties(Properties p)
          Declare Sonar properties, for example sonar.projectKey=>foo.
 String app()
           
 String appVersion()
           
protected abstract  void doExecute()
           
 void execute()
           
 Properties properties()
           
 String property(String key, String defaultValue)
           
 T setApp(String app, String version)
          User-agent used in the HTTP requests to the Sonar server
 T setProperty(String key, String value)
          Declare a Sonar property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Runner

protected Runner()
Method Detail

properties

public Properties properties()

addProperties

public T addProperties(Properties p)
Declare Sonar properties, for example sonar.projectKey=>foo.

See Also:
setProperty(String, String)

setProperty

public T setProperty(String key,
                     String value)
Declare a Sonar property.

See Also:
RunnerProperties, ScanProperties

property

public String property(String key,
                       @Nullable
                       String defaultValue)

setApp

public T setApp(String app,
                String version)
User-agent used in the HTTP requests to the Sonar server


app

public String app()

appVersion

public String appVersion()

execute

public void execute()

doExecute

protected abstract void doExecute()


Copyright © 2011-2014 SonarSource. All Rights Reserved.