View Javadoc

1   /**
2    * Copyright (C) 2012 White Source Ltd.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.whitesource.teamcity.common;
17  
18  /**
19   * Utility class to hold constant values used throughout the plugin.
20   *
21   * @author Edo.Shor
22   */
23  public final class Constants {
24  
25      /* --- Plugin constants --- */
26      public static final String PLUGIN_NAME = "whitesource";
27      public static final String AGENT_TYPE = "teamcity";
28      public static final String AGENT_VERSION = "1.0";
29  
30      /* --- Runner parameters --- */
31      public static final String PLUGIN_PREFIX = "org.whitesource.";
32      public static final String RUNNER_DO_UPDATE = PLUGIN_PREFIX + "doUpdate";
33      public static final String RUNNER_ORGANIZATION_TOKEN = PLUGIN_PREFIX + "orgToken";
34      public static final String RUNNER_OVERRIDE_ORGANIZATION_TOKEN = PLUGIN_PREFIX + "overrideOrgToken";
35      public static final String RUNNER_CHECK_POLICIES = PLUGIN_PREFIX + "checkPolicies";
36      public static final String RUNNER_OVERRIDE_CHECK_POLICIES = PLUGIN_PREFIX + "overrideCheckPolicies";
37      public static final String RUNNER_PROJECT_TOKEN = PLUGIN_PREFIX + "projectToken";
38      public static final String RUNNER_MODULE_TOKENS = PLUGIN_PREFIX + "moduleTokens";
39      public static final String RUNNER_INCLUDES = PLUGIN_PREFIX + "includes";
40      public static final String RUNNER_EXCLUDES = PLUGIN_PREFIX + "excludes";
41      public static final String RUNNER_IGNORE_POM_MODULES = PLUGIN_PREFIX + "ignorePomModules";
42      public static final String RUNNER_PROXY_HOST = PLUGIN_PREFIX + "proxyHost";
43      public static final String RUNNER_PROXY_PORT = PLUGIN_PREFIX + "proxyPort";
44      public static final String RUNNER_PROXY_USERNAME = PLUGIN_PREFIX + "proxyUsername";
45      public static final String RUNNER_PROXY_PASSWORD = PLUGIN_PREFIX + "proxyPassword";
46      public static final String RUNNER_SERVICE_URL = PLUGIN_PREFIX + "serviceUrl";
47  
48  
49      /* --- Runner types --- */
50      public static final String RUNNER_MAVEN = "Maven2";
51      public static final String RUNNER_ANT = "Ant";
52      public static final String RUNNER_CMD = "simpleRunner";
53      public static final String RUNNER_MSBUILD = "MSBuild";
54      public static final String RUNNER_POWERSHELL = "jetbrains_powershell";
55      public static final String RUNNER_IDEA = "JPS";
56      public static final String RUNNER_GRADLE = "gradle-runner";
57  
58  }