org.apache.avalon.composition.model.impl
Class DefaultFilesetModel
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.composition.model.impl.DefaultFilesetModel
- All Implemented Interfaces:
- FilesetModel, LogEnabled
- public class DefaultFilesetModel
- extends AbstractLogEnabled
- implements FilesetModel
Implementation of a FilesetModel
in which a set
of IncludeDirective
objects, a set of
ExcludeDirective
objects, a set of default
includes and excludes, and a base directory anchor are used
to resolve and build a set of files specified by a
FilesetDirective
.
- Version:
- $Revision: 1.7 $ $Date: 2004/04/21 17:56:25 $
- Author:
- Avalon Development Team
Method Summary |
ArrayList |
getIncludes()
Returns a set of File objects representing the
results of the fileset resolution. |
void |
resolveFileset()
Resolves the specified include and exclude directives from
the base directory anchor and produces an array of files
to include in the classpath. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFilesetModel
public DefaultFilesetModel(File anchor,
IncludeDirective[] includes,
ExcludeDirective[] excludes,
String[] defaultIncludes,
String[] defaultExcludes,
Logger logger)
- Constructs a new default fileset model.
- Parameters:
anchor
- base directory anchor from which to begin
fileset resolutionincludes
- array of IncludeDirective
objects
to use during fileset resolutionexcludes
- array of ExcludeDirective
objects
to use during fileset resolutiondefaultIncludes
- array of String
objects
to use as a default set of fileset includesdefaultExcludes
- array of String
objects
to use as a default set of fileset excludeslogger
- Logger
for the fileset model to use
getIncludes
public ArrayList getIncludes()
- Returns a set of
File
objects representing the
results of the fileset resolution. This array will contain
fully qualified filenames based on the base directory anchor.
- Returns:
- an array of files to include in the classpath
resolveFileset
public void resolveFileset()
throws IOException,
IllegalStateException
- Resolves the specified include and exclude directives from
the base directory anchor and produces an array of files
to include in the classpath.
- Specified by:
resolveFileset
in interface FilesetModel
- Throws:
IOException
IllegalStateException
Copyright © The Apache Software Foundation. All Rights Reserved.