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.StringCLASSIFIER_P2_ARTIFACTSstatic java.lang.StringCLASSIFIER_P2_METADATAstatic java.lang.StringDEFAULT_EXTERNSIONstatic java.lang.StringEXTENSION_P2_ARTIFACTSstatic java.lang.StringEXTENSION_P2_METADATAstatic java.lang.StringFILE_NAME_LOCAL_ARTIFACTSName of the file that stores the location of the Maven artifact in the target folder.static java.lang.StringFILE_NAME_P2_ARTIFACTSName of the file that contains the p2 artifact index.static java.lang.StringFILE_NAME_P2_METADATAName of the file where the module p2 metadata is stored in the target directory.static java.lang.StringKEY_ARTIFACT_ATTACHEDKey prefix for attached artifact locations in "local-artifacts.properties" files.static java.lang.StringKEY_ARTIFACT_MAINKey for the main artifact location in "local-artifacts.properties" files.static java.lang.StringPACK200_CLASSIFIERstatic java.lang.StringPACK200_EXTENSIONstatic java.lang.StringPROP_ARTIFACT_IDstatic java.lang.StringPROP_CLASSIFIERstatic java.lang.StringPROP_EXTENSIONstatic java.lang.StringPROP_GROUP_IDstatic java.lang.StringPROP_VERSION
-
Constructor Summary
Constructors Constructor Description RepositoryLayoutHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetClassifier(java.util.Map properties)static java.lang.StringgetExtension(java.util.Map properties)static GAVgetGAV(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)static GAVgetGAV(java.util.Map properties)static GAVgetP2Gav(java.lang.String classifier, java.lang.String id, java.lang.String version)static java.lang.StringgetRelativePath(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String classifier, java.lang.String extension)static java.lang.StringgetRelativePath(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)
-
-