@Component(role=ArtifactPackagingMapper.class) public class DefaultArtifactPackagingMapper extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArtifactPackagingMapper
Modifier and Type | Field and Description |
---|---|
static String |
MAPPING_PROPERTIES_FILE |
Constructor and Description |
---|
DefaultArtifactPackagingMapper() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getDefaults() |
String |
getExtensionForPackaging(String packaging)
Returns the extension belonging to given packaging, like "jar" for "jar", "jar" for "ear", etc.
|
Map<String,String> |
getPackaging2extensionMapping() |
void |
setPackaging2extensionMapping(Map<String,String> packaging2extensionMapping) |
void |
setPropertiesFile(File propertiesFile)
Sets the file to source the user provided mappings from, and resets the mappings, forcing it to reload the file.
|
public static final String MAPPING_PROPERTIES_FILE
public void setPropertiesFile(File propertiesFile)
ArtifactPackagingMapper
setPropertiesFile
in interface ArtifactPackagingMapper
public void setPackaging2extensionMapping(Map<String,String> packaging2extensionMapping)
public String getExtensionForPackaging(String packaging)
ArtifactPackagingMapper
getExtensionForPackaging
in interface ArtifactPackagingMapper
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.