set -euo pipefail
mvn clean package -Prun-ws-generator
-java -Dorchestrator.configUrl=file://$* -jar target/sonar-ws-generator-*-SNAPSHOT-jar-with-dependencies.jar
+java -jar target/sonar-ws-generator-*-SNAPSHOT-jar-with-dependencies.jar
cp -R target/generated-sources/results/org/sonarqube/ws/client/* ../sonar-ws/src/main/java/org/sonarqube/ws/client
import com.sonar.orchestrator.Orchestrator;
import com.sonar.orchestrator.http.HttpCall;
import com.sonar.orchestrator.http.HttpResponse;
+import com.sonar.orchestrator.locator.FileLocation;
+import java.io.File;
public class ApiDefinitionDownloader {
}
public static String downloadApiDefinition() {
- String orchestratorUrl = System.getProperty("orchestrator.configUrl");
- if (orchestratorUrl == null) {
- throw new IllegalStateException("Please run with -Dorchestrator.configUrl=file:///path/to/your/orchestrator.properties");
- }
Orchestrator orchestrator = Orchestrator
.builderEnv()
- .setSonarVersion("DEV")
+ .setZipFile(FileLocation.byWildcardMavenFilename(new File("../sonar-application/target"), "sonarqube-*.zip").getFile())
.build();
orchestrator.start();