package jetbrains.buildServer.autotools.common;

/**
 * Created by naduxa on 11.07.2017.
 */
public final class AutotoolsBuildConstants {
  /**
   * This private constuctor is needed for an instance of a class can not be created.
   */
  private AutotoolsBuildConstants(){
  }

  /**
   * This constant is for runner type name.
   */
  public static final String TYPE = "jetbrains-autotools-build";

  /**
   *This constant is for runner plugin description name.
   */
  public static final String DESCRIPTION = "Using Autotools for configure and build project";

  /**
   * This constant is for runner plugin name for UI.
   */
  public static final String DISPLAY_NAME = "Autotools configure and build";

  /**
   * This constant is for prefix UI elements plugin names.
   */
  private static final String UI_PREFIX = "ui-" + TYPE + "-";

  /**
   * This constant is for UI element name of configure script arguments.
   */
  public static final String UI_ADDITIONAL_CONF_PARAMS = UI_PREFIX + "additional-configure-params";
  /**
   * This constant is for UI element name of make arguments.
   */
  public static final String UI_ADDITIONAL_MAKE_PARAMS = UI_PREFIX + "additional-make-params";

  /**
   * This constant is for UI element name of autoreconf need.
   */
  public static final String UI_NEED_AUTORECONF = UI_PREFIX + "need_autoreconf";

  public static final String UI_NEED_DEJAGNU_VALID_XML= UI_PREFIX + "need_xml_replaces";
  /**
   *  This constant is for UI element name of source path.
   */
  public static final String UI_SOURCE_PATH = UI_PREFIX  + "source_path";

  public static final String HAS_RUNTEST_VAR = "HAS_RUNTEST";
  public static final String RUNTEST_XML_FILE_VAR = "RUNTEST_XML_FILE";
  public static final String UI_MAKE_CHECK = "MAKE_CHECK";
}

@@ -1772,10 +1772,213 @@
 CHECK%22;%0A
+  public static final String TOOL_MAKE = %22make%22;%0A  public static final String TOOL_AUTOCONF = %22autoconf%22;%0A  public static final String TOOL_TAR = %22tar%22;%0A  public static final String TOOL_GZIP = %22gzip%22;%0A%0A
 %7D%0A

add tools constants in autotools-common