public class PlexusIoFileResourceCollection extends AbstractPlexusIoResourceCollection implements PlexusIOResourceCollectionWithAttributes
PlexusIoResourceCollection for the set
of files in a common directory.| Modifier and Type | Field and Description |
|---|---|
static String |
ROLE_HINT
Role hint of this component
|
DEFAULT_ROLE_HINT, ROLE| Constructor and Description |
|---|
PlexusIoFileResourceCollection() |
PlexusIoFileResourceCollection(org.codehaus.plexus.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
File |
getBaseDir() |
Iterator<PlexusIoResource> |
getResources()
Returns an iterator over the resources in the collection.
|
boolean |
isFollowingSymLinks() |
void |
setBaseDir(File baseDir) |
void |
setDefaultAttributes(int uid,
String userName,
int gid,
String groupName,
int fileMode,
int dirMode)
Sets the file and directory attributes to use as defaults.
|
void |
setFollowingSymLinks(boolean pIsFollowingSymLinks) |
void |
setOverrideAttributes(int uid,
String userName,
int gid,
String groupName,
int fileMode,
int dirMode)
Sets the file and directory attributes to use as overrides.
|
enableLogging, getExcludes, getFileMappers, getFileSelectors, getIncludes, getLastModified, getLogger, getName, getPrefix, isCaseSensitive, isIncludingEmptyDirectories, isSelected, isUsingDefaultExcludes, setCaseSensitive, setExcludes, setFileMappers, setFileSelectors, setIncludes, setIncludingEmptyDirectories, setPrefix, setUsingDefaultExcludespublic static final String ROLE_HINT
public PlexusIoFileResourceCollection()
public PlexusIoFileResourceCollection(org.codehaus.plexus.logging.Logger logger)
public void setDefaultAttributes(int uid,
String userName,
int gid,
String groupName,
int fileMode,
int dirMode)
PlexusIOResourceCollectionWithAttributessetDefaultAttributes in interface PlexusIOResourceCollectionWithAttributesfileMode - The octal mode to use for filesdirMode - The octal mode to use for directoriespublic void setOverrideAttributes(int uid,
String userName,
int gid,
String groupName,
int fileMode,
int dirMode)
PlexusIOResourceCollectionWithAttributessetOverrideAttributes in interface PlexusIOResourceCollectionWithAttributesfileMode - The octal mode to use for filesdirMode - The octal mode to use for directoriespublic void setBaseDir(File baseDir)
baseDir - The base directory of the file collectionpublic File getBaseDir()
public boolean isFollowingSymLinks()
public void setFollowingSymLinks(boolean pIsFollowingSymLinks)
pIsFollowingSymLinks - whether symbolic links should be followedpublic Iterator<PlexusIoResource> getResources() throws IOException
PlexusIoResourceCollectiongetResources in interface PlexusIoResourceCollectionIOException - .Copyright © 2001-2014 Codehaus. All Rights Reserved.