/* * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jetbrains.buildServer.gradle; public class GradleRunnerConstants { public static final String RUNNER_TYPE = "gradle-runner"; public static final String GRADLE_INIT_SCRIPT = "ui.gradleRunner.gradle.init.script"; public static final String GRADLE_HOME = "ui.gradleRunner.gradle.home"; public static final String GRADLE_TASKS = "ui.gradleRunner.gradle.tasks.names"; public static final String GRADLE_PARAMS = "ui.gradleRunner.additional.gradle.cmd.params"; public static final String STACKTRACE = "ui.gradleRunner.gradle.stacktrace.enabled"; public static final String DEBUG = "ui.gradleRunner.gradle.debug.enabled"; public static final String GRADLE_WRAPPER_FLAG = "ui.gradleRunner.gradle.wrapper.useWrapper"; public static final String GRADLE_WRAPPER_PATH = "ui.gradleRunner.gradle.wrapper.path"; public static final String GRADLE_WORKING_DIR = "teamcity.build.workingDir"; public static final String IS_INCREMENTAL = "ui.gradleRunner.gradle.incremental"; public static final String PATH_TO_BUILD_FILE = "ui.gradleRUnner.gradle.build.file"; // incremental options run public static final String ENV_INCREMENTAL_PARAM = "TEAMCITY_GRADLE_INCREMENTAL_MODE"; public static final String ENV_INCREMENTAL_VALUE_SKIP = "skip_incremental"; public static final String ENV_INCREMENTAL_VALUE_PROCEED = "do_incremental"; // todo: it would be nice to autoconfigure some of the params based on type of build public static final String GRADLE_MODE_KEY = "GRADLE_RUNNER_MODE"; public static final String GRADLE_CI_MODE = "continuous-integration"; public static final String GRADLE_CD_MODE = "create-cd"; public static final String ENV_GRADLE_OPTS = "GRADLE_OPTS"; public static final String ENV_TEAMCITY_BUILD_INIT_PATH = "TEAMCITY_BUILD_INIT_PATH"; public static final String INIT_SCRIPT_NAME = "init.gradle"; public static final String INIT_SCRIPT_SUFFIX = "scripts/"+INIT_SCRIPT_NAME; public static final String STARTING_TEAMCITY_BUILD_PREFIX = "Starting Gradle in TeamCity build "; public static final String GRADLE_BUILD_PROBLEM_TYPE = "gradleBuildProblem"; }