powershell-common/src/main/java/jetbrains/buildServer/powershell/common/PowerShellConstants.java (31 lines of code) (raw):
package jetbrains.buildServer.powershell.common;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author Eugene Petrenko (eugene.petrenko@jetbrains.com)
* 03.12.10 15:53
*/
public class PowerShellConstants {
public static final String PLUGIN_NAME = "powershell-runner";
public static final String RUN_TYPE = "jetbrains_powershell";
public static final String CONFIG_KEEP_GENERATED = "powershell.keep.generated";
public static final String RUNNER_BITNESS = "jetbrains_powershell_bitness";
public static final String RUNNER_EDITION = "jetbrains_powershell_edition";
public static final String RUNNER_CUSTOM_ARGUMENTS = "jetbrains_powershell_additionalArguments";
public static final String RUNNER_SCRIPT_ARGUMENTS = "jetbrains_powershell_scriptArguments";
public static final String RUNNER_LOG_ERR_TO_ERROR = "jetbrains_powershell_errorToError";
public static final String RUNNER_MIN_VERSION = "jetbrains_powershell_minVersion";
public static final String RUNNER_NO_PROFILE = "jetbrains_powershell_noprofile";
public static final String RUNNER_SCRIPT_CODE = "jetbrains_powershell_script_code";
public static final String RUNNER_SCRIPT_FILE = "jetbrains_powershell_script_file";
public static final String RUNNER_SCRIPT_MODE = "jetbrains_powershell_script_mode";
public static final String RUNNER_EXECUTION_MODE = "jetbrains_powershell_execution";
/**
* Any bitness of runner is enough to run the build
*/
public static final String PARAM_VALUE_BITNESS_AUTO = "<Auto>";
/**
* Any edition of PowerShell is suitable
*/
public static final String PARAM_VALUE_EDITION_ANY = "<Any>";
public static final String POWERSHELL_PREFIX = "powershell_";
public static String generateGeneralKey(@NotNull final PowerShellEdition edition, @NotNull final PowerShellBitness bitness) {
return POWERSHELL_PREFIX + edition.getValue() + "_" + bitness.getValue();
}
public static final String PATH_SUFFIX = "_Path";
public static final String EXECUTABLE_SUFFIX = "_Executable";
public static String generateFullKey(@Nullable final PowerShellEdition edition, @NotNull final PowerShellBitness bitness, @NotNull final String version) {
return POWERSHELL_PREFIX + (edition != null ? edition.getValue() + "_" : "" ) + version + "_" + bitness.getValue();
}
/**
* Support for multiline arguments in UI
*/
public static String PARAM_ARGS_MULTILINE = "teamcity.powershell.arguments.multiline";
}