org.apache.maven.archiva.configuration
Class FileTypes
java.lang.Object
org.apache.maven.archiva.configuration.FileTypes
- All Implemented Interfaces:
- org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.registry.RegistryListener
public class FileTypes
- extends java.lang.Object
- implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.registry.RegistryListener
FileTypes
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARTIFACTS
public static final java.lang.String ARTIFACTS
- See Also:
- Constant Field Values
AUTO_REMOVE
public static final java.lang.String AUTO_REMOVE
- See Also:
- Constant Field Values
INDEXABLE_CONTENT
public static final java.lang.String INDEXABLE_CONTENT
- See Also:
- Constant Field Values
IGNORED
public static final java.lang.String IGNORED
- See Also:
- Constant Field Values
DEFAULT_EXCLUSIONS
public static final java.util.List<java.lang.String> DEFAULT_EXCLUSIONS
- Default exclusions from artifact consumers that are using the file types. Note that this is simplistic in the
case of the support files (based on extension) as it is elsewhere - it may be better to match these to actual
artifacts and exclude later during scanning.
FileTypes
public FileTypes()
setArchivaConfiguration
public void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)
getFileTypePatterns
public java.util.List<java.lang.String> getFileTypePatterns(java.lang.String id)
Get the list of patterns for a specified filetype.
You will always get a list. In this order.
- The Configured List
- The Default List
- A single item list of
"**/*"
- Parameters:
id - the id to lookup.
- Returns:
- the list of patterns.
matchesArtifactPattern
public boolean matchesArtifactPattern(java.lang.String relativePath)
matchesDefaultExclusions
public boolean matchesDefaultExclusions(java.lang.String relativePath)
initialize
public void initialize()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
- Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
afterConfigurationChange
public void afterConfigurationChange(org.codehaus.plexus.registry.Registry registry,
java.lang.String propertyName,
java.lang.Object propertyValue)
- Specified by:
afterConfigurationChange in interface org.codehaus.plexus.registry.RegistryListener
beforeConfigurationChange
public void beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry,
java.lang.String propertyName,
java.lang.Object propertyValue)
- Specified by:
beforeConfigurationChange in interface org.codehaus.plexus.registry.RegistryListener