Search in sources :

Example 1 with FileLocation

use of com.sonar.orchestrator.locator.FileLocation in project sonarqube by SonarSource.

the class WebTest method scan_struts.

@BeforeClass
public static void scan_struts() throws Exception {
    FileLocation strutsHome = orchestrator.getFileLocationOfShared("it-sonar-performancing/struts-1.3.9/pom.xml");
    MavenBuild scan = MavenBuild.create(strutsHome.getFile());
    scan.setGoals("sonar:sonar -V");
    scan.setEnvironmentVariable("MAVEN_OPTS", "-Xmx512m -server");
    scan.setProperty("sonar.scm.disabled", "true");
    scan.setProperty("sonar.sourceEncoding", "UTF-8");
    orchestrator.executeBuild(scan);
}
Also used : MavenBuild(com.sonar.orchestrator.build.MavenBuild) FileLocation(com.sonar.orchestrator.locator.FileLocation) BeforeClass(org.junit.BeforeClass)

Aggregations

MavenBuild (com.sonar.orchestrator.build.MavenBuild)1 FileLocation (com.sonar.orchestrator.locator.FileLocation)1 BeforeClass (org.junit.BeforeClass)1