aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-generator
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws-generator')
-rw-r--r--sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java b/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java
index b9ccb41c9bd..7f9748a1f7c 100644
--- a/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java
+++ b/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java
@@ -26,6 +26,8 @@ import com.sonar.orchestrator.http.HttpResponse;
import com.sonar.orchestrator.locator.FileLocation;
import java.io.File;
+import static com.sonar.orchestrator.container.Edition.COMMUNITY;
+
public class ApiDefinitionDownloader {
public static void main(String[] args) {
@@ -34,6 +36,7 @@ public class ApiDefinitionDownloader {
public static String downloadApiDefinition() {
OrchestratorBuilder builder = Orchestrator.builderEnv();
+ builder.setEdition(COMMUNITY);
builder.setZipFile(FileLocation.byWildcardMavenFilename(new File("../sonar-application/build/distributions"), "sonar-application-*.zip").getFile())
.setOrchestratorProperty("orchestrator.workspaceDir", "build");
Orchestrator orchestrator = builder