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);
}
Aggregations