/*
 * Copyright 2022 Thoughtworks, Inc.
 *
 * 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 com.thoughtworks.go.util;

import java.util.Calendar;
import java.util.Date;

public class GoConstants {
    public static final Date NEVER;
    public static final String GO_PLUGIN_MANIFEST_HEADER_PREFIX = "GoPlugin-";

    static {
        Calendar calendar = Calendar.getInstance();
        calendar.set(1900, Calendar.JANUARY, 1, 0, 0, 0);
        calendar.set(Calendar.MILLISECOND, 0);
        NEVER = calendar.getTime();
    }

    /**
     * This will force the browser to clear the cache only for this page.
     * If any other pages need to clear the cache, we might want to move this
     * logic to an intercepter.
     */
    public static final String CACHE_CONTROL = "max-age=1, no-cache";
    public static final String DEFAULT_APPROVED_BY = "changes";
    public static final String BASE_URL_PATTERN = "^(.+://.+?)/";
    public static final String ERROR_FOR_PAGE = "errorMessage";
    public static final String ERROR_FOR_JSON = "error";

    public static final String RESPONSE_CHARSET = "text/plain; charset=utf-8";
    public static final String RESPONSE_CHARSET_JSON = "application/json; charset=utf-8";
    public static final String CRUISE_PIPELINE_LABEL = "cruise_pipeline_label";
    public static final String CRUISE_PIPELINE_COUNTER = "cruise_pipeline_counter";
    public static final String CRUISE_STAGE_COUNTER = "cruise_stage_counter";
    public static final String CRUISE_AGENT = "cruise_agent";
    public static final String CRUISE_RESULT = "cruise_job_result";
    public static final String CRUISE_JOB_DURATION = "cruise_job_duration";
    public static final String CRUISE_JOB_ID = "cruise_job_id";
    public static final String CRUISE_TIMESTAMP = "cruise_timestamp_";

    public static final String PRODUCT_NAME = "go";

    public static final int CONFIG_SCHEMA_VERSION = 139;

    public static final String APPROVAL_SUCCESS = "success";
    public static final String APPROVAL_MANUAL = "manual";
    public static final int PUBLISH_MAX_RETRIES = 3;
    public static final String TEST_EMAIL_SUBJECT = "Go Email Notification";
    public static final int DEFAULT_TIMEOUT = 60 * 1000;
    public static final long MEGABYTES_IN_GIGABYTE = 1024;
    public static final long MEGA_BYTE = 1024 * 1024;
    public static final long GIGA_BYTE = MEGABYTES_IN_GIGABYTE * MEGA_BYTE;
    public static final String USE_COMPRESSED_JAVASCRIPT = "rails.use.compressed.js";
    public static final String GO_URL_CONTEXT = "/go";
    public static final String REGULAR_MULTIPART_FILENAME = "file";
    public static final String CHECKSUM_MULTIPART_FILENAME = "file_checksum";
    public static final String ZIP_MULTIPART_FILENAME = "zipfile";
    public static final String AGENT_JAR_MD5 = "agent.binary.md5";
    public static final String AGENT_PLUGINS_MD5 = "agent.plugins.md5";
    public static final String AGENT_BOOTSTRAPPER_VERSION = "agent.bootstrapper.version";
    public static final String TFS_IMPL_MD5 = "agent.tfs.md5";
    public static final String GIVEN_AGENT_LAUNCHER_JAR_MD5 = "agent.launcher.md5";
    public static final String ANY_PIPELINE = "[Any Pipeline]";
    public static final String ANY_STAGE = "[Any Stage]";
}

@@ -1225,17 +1225,17 @@
 ntercept
-e
+o
 r.%0A     
@@ -1630,32 +1630,32 @@
 charset=utf-8%22;%0A
+
     public stati
@@ -1731,591 +1731,8 @@
 -8%22;
-%0A    public static final String CRUISE_PIPELINE_LABEL = %22cruise_pipeline_label%22;%0A    public static final String CRUISE_PIPELINE_COUNTER = %22cruise_pipeline_counter%22;%0A    public static final String CRUISE_STAGE_COUNTER = %22cruise_stage_counter%22;%0A    public static final String CRUISE_AGENT = %22cruise_agent%22;%0A    public static final String CRUISE_RESULT = %22cruise_job_result%22;%0A    public static final String CRUISE_JOB_DURATION = %22cruise_job_duration%22;%0A    public static final String CRUISE_JOB_ID = %22cruise_job_id%22;%0A    public static final String CRUISE_TIMESTAMP = %22cruise_timestamp_%22;
 %0A%0A  

Remove old unused constants