/*
 * Copyright 2000-2011 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.nuget.common;

import jetbrains.buildServer.ArtifactsConstants;
import jetbrains.buildServer.agent.Constants;

/**
 * Created by Eugene Petrenko (eugene.petrenko@gmail.com)
 * Date: 07.07.11 13:56
 */
public interface PackagesConstants {
  public static final String INSTALL_RUN_TYPE = "jetbrains.nuget.packagesInstaller";
  public static final String PUBLISH_RUN_TYPE = "jetbrains.nuget.publish";


  public static final String NUGET_PATH = "nuget.path";
  public static final String NUGET_SOURCES = "nuget.sources";
  public static final String NUGET_EXCLUDE_VERSION = "nuget.excludeVersion";

  public static final String NUGET_UPDATE_PACKAGES = "nuget.updatePackages";
  public static final String NUGET_UPDATE_PACKAGES_SAFE = "nuget.updatePackages.safe";
  public static final String NUGET_UPDATE_PACKAGE_IDS = "nuget.updatePackages.ids";
  public static final String NUGET_UPDATE_MODE = "nuget.updatePackages.mode";

  public static final String SLN_PATH = "sln.path";

  public static final String NUGET_USED_PACKAGES_DIR = ArtifactsConstants.TEAMCITY_ARTIFACTS_DIR + "/nuget";
  public static final String NUGET_USED_PACKAGES_FILE = "nuget.xml";


  public static final String NUGET_PUBLISH_CREATE_ONLY = "nuget.publish.create.only";
  public static final String NUGET_PUBLISH_FILES = "nuget.publish.files";
  public static final String NUGET_PUBLISH_SOURCE = "nuget.publish.source";
  public static final String NUGET_API_KEY = Constants.SECURE_PROPERTY_PREFIX + "nuget.api.key";
}

@@ -1021,32 +1021,25 @@
 UN_TYPE = %22j
-etbrains
+b
 .nuget.publi
@@ -1042,16 +1042,55 @@
 ublish%22;
+ //run-type could never exceed 30 chars
 %0D%0A%0D%0A%0D%0A  

make run-type Id fit ridiculous DB limits.