Package org.eclipse.tycho.p2.repository
Class RepositoryLayoutHelper
- java.lang.Object
-
- org.eclipse.tycho.p2.repository.RepositoryLayoutHelper
-
public class RepositoryLayoutHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLASSIFIER_P2_ARTIFACTS
static java.lang.String
CLASSIFIER_P2_METADATA
static java.lang.String
DEFAULT_EXTERNSION
static java.lang.String
EXTENSION_P2_ARTIFACTS
static java.lang.String
EXTENSION_P2_METADATA
static java.lang.String
FILE_NAME_LOCAL_ARTIFACTS
Name of the file that stores the location of the Maven artifact in the target folder.static java.lang.String
FILE_NAME_P2_ARTIFACTS
Name of the file that contains the p2 artifact index.static java.lang.String
FILE_NAME_P2_METADATA
Name of the file where the module p2 metadata is stored in the target directory.static java.lang.String
KEY_ARTIFACT_ATTACHED
Key prefix for attached artifact locations in "local-artifacts.properties" files.static java.lang.String
KEY_ARTIFACT_MAIN
Key for the main artifact location in "local-artifacts.properties" files.static java.lang.String
PACK200_CLASSIFIER
static java.lang.String
PACK200_EXTENSION
static java.lang.String
PROP_ARTIFACT_ID
static java.lang.String
PROP_CLASSIFIER
static java.lang.String
PROP_EXTENSION
static java.lang.String
PROP_GROUP_ID
static java.lang.String
PROP_VERSION
-
Constructor Summary
Constructors Constructor Description RepositoryLayoutHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getClassifier(java.util.Map properties)
static java.lang.String
getExtension(java.util.Map properties)
static GAV
getGAV(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
static GAV
getGAV(java.util.Map properties)
static GAV
getP2Gav(java.lang.String classifier, java.lang.String id, java.lang.String version)
static java.lang.String
getRelativePath(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String classifier, java.lang.String extension)
static java.lang.String
getRelativePath(GAV gav, java.lang.String classifier, java.lang.String extension)
-
-
-
Field Detail
-
PROP_GROUP_ID
public static final java.lang.String PROP_GROUP_ID
- See Also:
- Constant Field Values
-
PROP_ARTIFACT_ID
public static final java.lang.String PROP_ARTIFACT_ID
- See Also:
- Constant Field Values
-
PROP_VERSION
public static final java.lang.String PROP_VERSION
- See Also:
- Constant Field Values
-
PROP_CLASSIFIER
public static final java.lang.String PROP_CLASSIFIER
- See Also:
- Constant Field Values
-
PROP_EXTENSION
public static final java.lang.String PROP_EXTENSION
- See Also:
- Constant Field Values
-
CLASSIFIER_P2_METADATA
public static final java.lang.String CLASSIFIER_P2_METADATA
- See Also:
- Constant Field Values
-
EXTENSION_P2_METADATA
public static final java.lang.String EXTENSION_P2_METADATA
- See Also:
- Constant Field Values
-
FILE_NAME_P2_METADATA
public static final java.lang.String FILE_NAME_P2_METADATA
Name of the file where the module p2 metadata is stored in the target directory. The name needs to be known so that the target folder can be read as p2 metadata repository.- See Also:
- Constant Field Values
-
CLASSIFIER_P2_ARTIFACTS
public static final java.lang.String CLASSIFIER_P2_ARTIFACTS
- See Also:
- Constant Field Values
-
EXTENSION_P2_ARTIFACTS
public static final java.lang.String EXTENSION_P2_ARTIFACTS
- See Also:
- Constant Field Values
-
FILE_NAME_P2_ARTIFACTS
public static final java.lang.String FILE_NAME_P2_ARTIFACTS
Name of the file that contains the p2 artifact index. This file is one of the files needed to read the target folder as p2 artifact repository. The location is relative to the build target directory root.- See Also:
- Constant Field Values
-
FILE_NAME_LOCAL_ARTIFACTS
public static final java.lang.String FILE_NAME_LOCAL_ARTIFACTS
Name of the file that stores the location of the Maven artifact in the target folder. This file is one of the files needed to read the target folder as p2 artifact repository.- See Also:
- Constant Field Values
-
KEY_ARTIFACT_MAIN
public static final java.lang.String KEY_ARTIFACT_MAIN
Key for the main artifact location in "local-artifacts.properties" files.- See Also:
- Constant Field Values
-
KEY_ARTIFACT_ATTACHED
public static final java.lang.String KEY_ARTIFACT_ATTACHED
Key prefix for attached artifact locations in "local-artifacts.properties" files.- See Also:
- Constant Field Values
-
DEFAULT_EXTERNSION
public static final java.lang.String DEFAULT_EXTERNSION
- See Also:
- Constant Field Values
-
PACK200_CLASSIFIER
public static final java.lang.String PACK200_CLASSIFIER
- See Also:
- Constant Field Values
-
PACK200_EXTENSION
public static final java.lang.String PACK200_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRelativePath
public static java.lang.String getRelativePath(GAV gav, java.lang.String classifier, java.lang.String extension)
-
getRelativePath
public static java.lang.String getRelativePath(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String classifier, java.lang.String extension)
-
getP2Gav
public static GAV getP2Gav(java.lang.String classifier, java.lang.String id, java.lang.String version)
-
getGAV
public static GAV getGAV(java.util.Map properties)
-
getGAV
public static GAV getGAV(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
-
getClassifier
public static java.lang.String getClassifier(java.util.Map properties)
-
getExtension
public static java.lang.String getExtension(java.util.Map properties)
-
-