@Singleton @Named public class DefaultArtifactPackagingMapper extends Object 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.
|
protected org.slf4j.Logger |
getLogger() |
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
protected org.slf4j.Logger getLogger()
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–2017 The Apache Software Foundation. All rights reserved.