org.apache.maven.plugin.dependency.utils.filters
Class DestFileFilter
java.lang.Object
org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
org.apache.maven.plugin.dependency.utils.filters.DestFileFilter
- All Implemented Interfaces:
- ArtifactItemFilter, org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter
public class DestFileFilter
- extends org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
- implements ArtifactItemFilter
- Version:
- $Id: DestFileFilter.java 728546 2008-12-21 22:56:51Z bentmann $
- Author:
- Brian Fox
Constructor Summary |
DestFileFilter(boolean overWriteReleases,
boolean overWriteSnapshots,
boolean overWriteIfNewer,
boolean useSubDirectoryPerArtifact,
boolean useSubDirectoryPerType,
boolean useRepositoryLayout,
boolean removeVersion,
java.io.File outputFileDirectory)
|
DestFileFilter(java.io.File outputFileDirectory)
|
Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter |
isArtifactIncluded |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DestFileFilter
public DestFileFilter(java.io.File outputFileDirectory)
DestFileFilter
public DestFileFilter(boolean overWriteReleases,
boolean overWriteSnapshots,
boolean overWriteIfNewer,
boolean useSubDirectoryPerArtifact,
boolean useSubDirectoryPerType,
boolean useRepositoryLayout,
boolean removeVersion,
java.io.File outputFileDirectory)
filter
public java.util.Set filter(java.util.Set artifacts)
throws org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
- Specified by:
filter
in interface org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter
- Throws:
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
isOverWriteReleases
public boolean isOverWriteReleases()
- Returns:
- Returns the overWriteReleases.
setOverWriteReleases
public void setOverWriteReleases(boolean overWriteReleases)
- Parameters:
overWriteReleases
- The overWriteReleases to set.
isOverWriteSnapshots
public boolean isOverWriteSnapshots()
- Returns:
- Returns the overWriteSnapshots.
setOverWriteSnapshots
public void setOverWriteSnapshots(boolean overWriteSnapshots)
- Parameters:
overWriteSnapshots
- The overWriteSnapshots to set.
isOverWriteIfNewer
public boolean isOverWriteIfNewer()
- Returns:
- Returns the overWriteIfNewer.
setOverWriteIfNewer
public void setOverWriteIfNewer(boolean overWriteIfNewer)
- Parameters:
overWriteIfNewer
- The overWriteIfNewer to set.
getOutputFileDirectory
public java.io.File getOutputFileDirectory()
- Returns:
- Returns the outputFileDirectory.
setOutputFileDirectory
public void setOutputFileDirectory(java.io.File outputFileDirectory)
- Parameters:
outputFileDirectory
- The outputFileDirectory to set.
isRemoveVersion
public boolean isRemoveVersion()
- Returns:
- Returns the removeVersion.
setRemoveVersion
public void setRemoveVersion(boolean removeVersion)
- Parameters:
removeVersion
- The removeVersion to set.
isUseSubDirectoryPerArtifact
public boolean isUseSubDirectoryPerArtifact()
- Returns:
- Returns the useSubDirectoryPerArtifact.
setUseSubDirectoryPerArtifact
public void setUseSubDirectoryPerArtifact(boolean useSubDirectoryPerArtifact)
- Parameters:
useSubDirectoryPerArtifact
- The useSubDirectoryPerArtifact to set.
isUseSubDirectoryPerType
public boolean isUseSubDirectoryPerType()
- Returns:
- Returns the useSubDirectoryPerType.
setUseSubDirectoryPerType
public void setUseSubDirectoryPerType(boolean useSubDirectoryPerType)
- Parameters:
useSubDirectoryPerType
- The useSubDirectoryPerType to set.
isUseRepositoryLayout
public boolean isUseRepositoryLayout()
- Returns:
- Returns the useRepositoryLayout
setUseRepositoryLayout
public void setUseRepositoryLayout(boolean useRepositoryLayout)
- Parameters:
useRepositoryLayout
- the useRepositoryLayout to set
isArtifactIncluded
public boolean isArtifactIncluded(ArtifactItem item)
- Specified by:
isArtifactIncluded
in interface ArtifactItemFilter
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.