All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.c8tech.tools.maven.osgi.lib.mojo.CommonMojoConstants Maven / Gradle / Ivy

/**
 * ==========================================================================
 * Copyright © 2015-2018 Cristiano Gavião, C8 Technology ME.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Cristiano Gavião ([email protected])- initial API and implementation
 * ==========================================================================
 */
package br.com.c8tech.tools.maven.osgi.lib.mojo;

import java.text.MessageFormat;

public class CommonMojoConstants {

    public static final String CACHED_FILE_PATTERN_CLASSIFIER = "%c";
    public static final String CACHED_FILE_PATTERN_DEFAULT_FINALNAME = "%n-%c-%v.%e";
    public static final String CACHED_FILE_PATTERN_EXTENSION = "%e";
    public static final String CACHED_FILE_PATTERN_NAME = "%n";
    public static final String CACHED_FILE_PATTERN_SYMBOLIC_NAME = "%s";
    public static final String CACHED_FILE_PATTERN_VERSION = "%v";

    public static final String DEFAULT_CACHE_DIR_NAME = "cache";

    public static final String DEFAULT_INCREMENTAL_BUILD_DIR_NAME = "incremental";

    public static final int DEFAULT_TIMEOUT = 0;

    public static final String EMPTY_VALUE = "empty";

    public static final String EMPTY_VERSION = "0.0.0";

    public static final String JAR_EXTENSION = "jar";

    public static final String JAR_MANIFEST_FILE_NAME = "MANIFEST.MF";

    public static final String JAR_MANIFEST_FOLDER = "META-INF/";

    public static final String JAR_MANIFEST_LOCATION = JAR_MANIFEST_FOLDER
            + JAR_MANIFEST_FILE_NAME;

    public static final String LANGUAGE_JAVA = "java";

    public static final String MAVEN_POM = "pom.xml";

    public static final String MAVEN_TARGET_CLASSES_FOLDER = "target/classes";

    /**
     * MIME type to be stored in the extra field of a {@code ZipEntry} object
     * for an installable bundle file. Zip entries of this type will be
     * installed in the framework, but not started. The entry will also not be
     * put into the information dictionary.
     * 

* Copied from org.osgi.service.provisioning.ProvisioningService */ public static final String MIME_BUNDLE = "application/vnd.osgi.bundle"; /** * MIME type to be stored in the extra field of a ZipEntry for a String that * represents a URL for a bundle. Zip entries of this type will be used to * install (but not start) a bundle from the URL. The entry will not be put * into the information dictionary. *

* Copied from org.osgi.service.provisioning.ProvisioningService */ public static final String MIME_BUNDLE_URL = "text/x-osgi-bundle-url"; /** * MIME type to be stored stored in the extra field of a {@code ZipEntry} * object for {@code byte[]} data. *

* Copied from org.osgi.service.provisioning.ProvisioningService */ public static final String MIME_BYTE_ARRAY = "application/octet-stream"; /** * MIME type to be stored in the extra field of a {@code ZipEntry} object * for String data. *

* Copied from org.osgi.service.provisioning.ProvisioningService */ public static final String MIME_STRING = "text/plain;charset=utf-8"; public static final String MIME_TYPE_ENTRY_NAME = "mimetype"; public static final MessageFormat MSG_CHOICE_ARTIFACT = new MessageFormat( "{0} " + "{0,choice,0#artifacts|1#artifact|1 * Copied from org.osgi.service.provisioning.ProvisioningService */ public static final String OSGI_PROVISIONING_REFERENCE = "provisioning.reference"; /** * The key to the provisioning information that contains the location of the * bundle to start with {@code AllPermission}. The bundle must have be * previously installed for this entry to have any effect. *

* Copied from org.osgi.service.provisioning.ProvisioningService */ public static final String OSGI_PROVISIONING_START_BUNDLE = "provisioning.start.bundle"; public static final String OSGI_REPO_COMPRESSED_XML_GZ = ".gz"; public static final String OSGI_REPOSITORIES_DIRECTORY = "repository"; public static final String OSGI_REPOSITORY_ARCHIVE_EXTENSION = "zip"; public static final String OSGI_REPOSITORY_PACKAGING = "osgi.repository"; public static final String OSGI_SUBSYSTEM_ARCHIVER = "osgi.subsystem"; public static final String OSGI_SUBSYSTEM_DIRECTORY = "subsystems"; /** * Default subsystem artifact extension. */ public static final String OSGI_SUBSYSTEM_EXTENSION = "esa"; public static final String OSGI_SUBSYSTEM_MANIFEST_FOLDER = "OSGI-INF/"; public static final String OSGI_SUBSYSTEM_MANIFEST_LOCATION = OSGI_SUBSYSTEM_MANIFEST_FOLDER + CommonMojoConstants.OSGI_SUBSYSTEM_MANIFEST_XML_NAME; public static final String OSGI_SUBSYSTEM_MANIFEST_XML_NAME = "SUBSYSTEM.MF"; public static final String OSGI_SUBSYSTEM_MIME_TYPE = "application/vnd.osgi.subsystem"; public static final String OSGI_SUBSYSTEM_PACKAGING_APPLICATION = "osgi.subsystem.application"; public static final String OSGI_SUBSYSTEM_PACKAGING_COMPOSITE = "osgi.subsystem.composite"; public static final String OSGI_SUBSYSTEM_PACKAGING_FEATURE = "osgi.subsystem.feature"; public static final String OSGI_SUBSYSTEM_SN = "Subsystem-SymbolicName"; public static final String OSGI_SUBSYSTEM_TYPE = "Subsystem-Type"; public static final String OSGI_SUBSYSTEM_VERSION = "Subsystem-Version"; public static final String SCHEMA_SYNTAX_FILE = "file:['/']"; public static final String SCHEMA_SYNTAX_HTTP = "http:Host[:Port]/[Path][#AnchorName][?Query]"; public static final String SCHEMA_SYNTAX_HTTPS = "https:Host[:Port]/[Path][#AnchorName][?Query]"; public static final String SCHEMA_SYNTAX_MVN = "mvn:[repositoryUrl!]groupId/artifactId[/[version][/[packaging][/[classifier]]]]"; /** * Syntax for the url; to be shown on exception messages. */ public static final String SCHEMA_SYNTAX_OBR = "obr:['/']"; public static final String SCHEMA_SYNTAX_RSH = "rsh:Host[:Port]/[Path][#AnchorName][?Query]"; public static final String URL_SCHEME_ASSEMBLY = "assembly://"; public static final String URL_SCHEME_FILE = "file://"; public static final String URL_SCHEME_HTTP = "http://"; public static final String URL_SCHEME_HTTPS = "https://"; public static final String URL_SCHEME_MVN = "mvn://"; public static final String URL_SCHEME_OBR = "obr://"; public static final String URL_SCHEME_RSH = "rsh://"; private CommonMojoConstants() { } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy