org.whitesource.utils.Constants Maven / Gradle / Ivy
package org.whitesource.utils;
/**
* Property keys for the whitesource-fs-agent
* @author eRez Huberman
**/
public class Constants {
public static final String NEW_LINE = System.lineSeparator();
public static final String JAVA_NETWORKING = "java.net";
public static final String FILE_SEPARATOR = "file.separator";
public static final String SYS_FILE_SEPARATOR = System.getProperty(Constants.FILE_SEPARATOR);
public static final String FALSE = "false";
public static final String TRUE = "true";
public static final String TAG = "tag";
public static final String VERSION = "version";
public static final String RESOLUTION = "_resolution";
public static final String NAME = "name";
public static final String MISSING = "missing";
public static final String DEPENDENCIES = "dependencies";
public static final String SRC = "src";
public static final String CMD = "cmd";
public static final String OS_NAME = "os.name";
public static final String WIN = "win";
public static final String JS_EXTENSION = ".js";
public static final String PACKAGES = "packages";
public static final String DEFAULT = "DEFAULT";
public static final String ALL = "ALL";
public static final String INSTALL = "install";
public static final String MAVEN = "maven";
public static final String HTML = "html";
public static final String HTM = "htm";
public static final String SHTML = "shtml";
public static final String XHTML = "xhtml";
public static final String JSP = "jsp";
public static final String ASP = "asp";
public static final String DO = "do";
public static final String ASPX = "aspx";
public static final String WINDOWS = "Windows";
public static final String GRADLE_WRAPPER = "wrapper";
public static final String GRADLE = "gradle";
public static final String POM = "pom";
public static final String JAR = "jar";
public static final String WAR = "war";
public static final String EAR = "ear";
public static final String PACKAGE_JSON = "package.json";
public static final String DOT = ".";
public static final String DIRECTORY = "d";
public static final String BACK_SLASH = "\\";
public static final String FORWARD_SLASH = "/";
public static final String WHITESPACE = " ";
public static final String DOWN_LINE = "\n";
public static final String EMPTY_STRING = "";
public static final String COLON = ":";
public static final String AT = "@";
public static final String PLUS = "+";
public static final String DASH = "-";
public static final String PATTERN = "**/*";
public static final String COMMA = ",";
public static final String PIPE = "|";
public static final String REGEX_PATTERN_PREFIX = ".*\\.";
public static final String GLOB_PATTERN_PREFIX = "**/*";
public static final String GLOB_PATTERN = ".*.*";
public static final String EQUALS = "=";
public static final String POUND = "#";
public static final String QUOTATION_MARK = "\"";
public static final String APOSTROPHE = "'";
public static final String HTTP = "http";
public static final String HTTPS = "https";
public static final String UTF8 = "UTF-8";
public static final String DLL = ".dll";
public static final String EXE = ".exe";
public static final String NUPKG = ".nupkg";
public static final String CS = ".cs";
public static final String VAR = "var";
public static final String LIB = "lib";
public static final String YUM_DB = "yumdb";
public static final String YUM = "yum";
public static final String PYTHON_REQUIREMENTS = "requirements.txt";
public static final String PIPFILE = "Pipfile";
public static final String TXT_EXTENSION = ".txt";
public static final String SETUP_PY = "setup.py";
public static final String JAR_EXTENSION = ".jar";
public static final int MAX_EXTRACTION_DEPTH = 7;
public static final int COMMENT_MAX_LENGTH = 1000;
public static final int ZERO = 0;
public static final int ONE = 1;
public static final String BUILD_GRADLE = "build.gradle";
public static final String COPY_DEPENDENCIES = "copyDependencies";
public static final String UNDERSCORE = "_";
public static final char QUESTION_MARK = '?';
public static final char WHITESPACE_CHAR = ' ';
public static final char OPEN_BRACKET = '(';
public static final char CLOSE_BRACKET = ')';
public static final char EQUALS_CHAR = '=';
public static final char OPEN_SQUARE_BRACKET = '[';
public static final char CLOSE_SQUARE_BRACKET = ']';
public static final String DOUBLE_EQUALS = "==";
public static final char SEMI_COLON = ';';
public static final String DOLLAR = "$";
public static final String OPEN_CURLY_BRACKET = "{";
public static final String CLOSE_CURLY_BRACKET = "}";
public static final String VERSION_PARAMETER = "-v";
public static final String DOT_REGEX = "\\.";
public static final String C_CHAR_WINDOWS = "/c";
public static final String STAR = "*";
public static final String PRESTEP = "preStep";
public static final String BOWER_JSON = "bower.json";
public static final String MAP_LOG_NAME = "org.whitesource";
public static final String MAP_APPENDER_NAME = "collectToMap";
public static final String HELP_ARG1 = "-help";
public static final String HELP_ARG2 = "-h";
public static final String TARGET = "target";
public static final String BUILD = "build";
public static final String NONE = "None";
public static final String LIBS = "libs";
public static final String USER_HOME = "user.home";
public static final String ERROR = "error";
public static final int STATUS_CODE_200 = 200;
public static final int STATUS_CODE_401 = 401;
public static final int STATUS_CODE_404 = 404;
public static final String REQUEST_TYPE = "requestType";
public static final String ORG_TOKEN = "orgToken";
public static final String USER_KEY = "userKey";
public static final int MAX_NUMBER_OF_DEPENDENCIES = 1000000;
public static final String PROJECT_SCAN_DETAILS= "scanProjectDetails.json";
public static final String CHILD_PATH="whitesource";
public static final String PREFFERED_COMMAND="PrefferedCommand";
public static final String PACKAGE_PARAM="PackageParam";
public static final String DOTNET_COMMAND = "dotnet";
public static final String NUGET_COMMAND = "nuget";
public static final String NUGET_DIRECTORY = "-PackagesDirectory";
public static final String DOTNET_PACKAGES = "--packages";
public static final String IMAGE = "Image";
public static final String CONTAINER = "Container";
public static final String BUILD_XML = "build.xml";
public static final String ANT = "ANT";
public static final String JAVA_SCRIPT_REGEX = ".*\\.js";
public static final String REGEX = "regex:";
public static final String EXCEPTION = "Exception: {}";
public static final String IOEXCEPTION = "IOException: {}";
public static final String FILE_NOT_FOUND_EXCEPTION = "FileNotFoundException: {}";
public static final String EUA_ERROR = "Effective Usage Analysis will not run if";
// GO constant
public static final String GO_EXTENSION = ".go";
public static final String GO_GOPKG_LOCK = "Gopkg.lock";
public static final String GO_VNDR_CONF = "vendor.conf";
public static final String GO_GLIDE_LOCK = "glide.lock";
public static final String GO_GLIDE_YAML = "glide.yaml";
public static final String GO_GOVENDOR_JSON = "vendor.json";
public static final String GO_GOPM_FILE = ".gopmfile";
public static final String GO_VGOMOD = "go.mod" ;
public static final String GO_PROJECTS = "[[projects]]";
public static final String GO_NAME = "name";
public static final String GO_REVISION = "revision";
public static final String GO_PACKAGES = "packages = ";
public static final String GO_VERSION = "version";
public static final String GO_PACKAGESBRACKET = "packages = [";
public static final String GO_GOPM_GEN_CMD = "gen";
public static final String GO_GOPM_TAG = "tag:";
public static final String GO_GOPM_COMMIT = "commit:";
public static final String GO_GOPM_BRANCH = "branch:";
public static final String GO_REPOS = "repos";
public static final String GO_GOPM = ".gopm";
public static final String GO_GOPM_DEPS = "deps";
public static final String GO_GODEPS = "Godeps";
public static final String GO_GODEPS_JSON = "Godeps.json";
public static final String GO_SAVE = "save";
public static final String GO_CANT_FIND = "Can't find ";
public static final String GO_DEPS = "Deps";
public static final String GO_IMPORT_PATH = "ImportPath";
public static final String GO_REV = "Rev";
public static final String GO_COMMENT = "Comment";
public static final String GO_ENSURE = "ensure";
public static final String GO_INIT = "init";
public static final String GO_VENDOR = "vendor";
public static final String GO_V0_0_0 = "v0.0.0";
public static final String GO_REQUIRE = "require";
public static final String GO_MOD_INIT = "mod init";
public static final String GO_PACKAGE = "package";
public static final String PATH = "path";
public static final String GO_COMMIT = "commit: ";
public static final String GO_ASTERIX = "(*)";
public static final String GO_SLASH = "\\--" ;
public static final String GO_GOGRADLE_LOCK = "gogradle.lock";
public static final String GO_STATUS = "status";
public static final String GO_ADD_EXTERNAL = "add +external";
public static final String GO_IMPORTS = "imports";
public static final String GO_NAME_GLIDE = "- name: ";
public static final String GO_VERSION_GLIDE = " version: ";
public static final String GO_TEST_IMPORTS = "testImports";
public static final String GO_UPDATE = "update";
public static final String GO_ERROR = "Error: {}";
public static final String GO_DEPENDENCIES = "goDependencies";
public static final String GO_GRADLE_LOCK = "lock";
public static final String GO_GRADLE_GO_LOCK = "goLock";
public static final String GO_SUBPACKAGES_GLIDE = " subpackages";
public static final String GO_PREFIX_SUBPACKAGES_SECTION = " - ";
public static final String GO_PRESTEP_TRUE_BUT_FAILED = "go.collectDependenciesAtRuntime = true but pre-step failed";
// Docker constants
public static final String NAME_FORMAT_DEFAULT = "default";
public static final String DEBIAN = "debian";
public static final String ARCHLINUX = "archLinux";
public static final String ALPINE = "alpine";
public static final String RPM = "rpm";
public static final String DOCKER = "docker";
public static final String CONFIG = "config";
}