org.apache.avalon.composition.data
Class FilesetDirective

java.lang.Object
  extended byorg.apache.avalon.composition.data.FilesetDirective
All Implemented Interfaces:
Serializable

public class FilesetDirective
extends Object
implements Serializable

A fileset directive is a scoped defintion of a set of files. A fileset a structurally defined as a base directory and a set of relative filenames represented as include directives and/or exclude directives.

XML

   <fileset dir="lib">
     <include name="avalon-framework.jar"/>
     <include name="logkit.jar"/>
     <exclude name="servlet.jar"/>
   </dirset>
 

Version:
$Revision: 1.4 $ $Date: 2004/04/16 19:55:11 $
Author:
Avalon Development Team
See Also:
IncludeDirective, ExcludeDirective, Serialized Form

Constructor Summary
FilesetDirective(String base, IncludeDirective[] includes)
          Create a FilesetDirective instance.
FilesetDirective(String base, IncludeDirective[] includes, ExcludeDirective[] excludes)
          Create a FilesetDirective instance.
 
Method Summary
 String getBaseDirectory()
          Return the base directory.
 ExcludeDirective[] getExcludes()
          Return the set of exclude directives.
 IncludeDirective[] getIncludes()
          Return the set of include directives.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesetDirective

public FilesetDirective(String base,
                        IncludeDirective[] includes)
Create a FilesetDirective instance.

Parameters:
base - the base directory path against which includes are evaluated
includes - the set of includes to include in the fileset

FilesetDirective

public FilesetDirective(String base,
                        IncludeDirective[] includes,
                        ExcludeDirective[] excludes)
Create a FilesetDirective instance.

Parameters:
base - the base directory path against which includes are evaluated
includes - the set of includes to include in the fileset
Method Detail

getBaseDirectory

public String getBaseDirectory()
Return the base directory.

Returns:
the directory

getIncludes

public IncludeDirective[] getIncludes()
Return the set of include directives.

Returns:
the include set

getExcludes

public ExcludeDirective[] getExcludes()
Return the set of exclude directives.

Returns:
the exclude set


Copyright © The Apache Software Foundation. All Rights Reserved.