avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata FileSetDef.java ClassLoaderDef.java FilesetDef.java
Date Sun, 01 Sep 2002 04:11:46 GMT
donaldp     2002/08/31 21:11:46

  Modified:    src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata
                        ClassLoaderDef.java
  Added:       src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata
                        FileSetDef.java
  Removed:     src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata
                        FilesetDef.java
  Log:
  Rename Fileset to FileSet for consistency sake
  
  Revision  Changes    Path
  1.2       +5 -5      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata/ClassLoaderDef.java
  
  Index: ClassLoaderDef.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata/ClassLoaderDef.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassLoaderDef.java	1 Sep 2002 00:51:37 -0000	1.1
  +++ ClassLoaderDef.java	1 Sep 2002 04:11:46 -0000	1.2
  @@ -12,7 +12,7 @@
   /**
    * This class defines a specific classloader, made up of
    * {@link EntryDef}, {@link Extension} and
  - * {@link FilesetDef} objects.
  + * {@link FileSetDef} objects.
    *
    * @author <a href="mailto:peter at apache.org">Peter Donald</a>
    * @version $Revision$ $Date$
  @@ -44,13 +44,13 @@
       /**
        * The Filesets that are added to this ClassLoader.
        */
  -    private final FilesetDef[] m_filesets;
  +    private final FileSetDef[] m_filesets;
   
       public ClassLoaderDef( final String name,
                                   final String parent,
                                   final EntryDef[] elements,
                                   final Extension[] extensions,
  -                                final FilesetDef[] filesets )
  +                                final FileSetDef[] filesets )
       {
           m_name = name;
           m_parent = parent;
  @@ -109,7 +109,7 @@
        * @return the filesets added to Classloader.
        * @see #m_filesets
        */
  -    public FilesetDef[] getFilesets()
  +    public FileSetDef[] getFilesets()
       {
           return m_filesets;
       }
  
  
  
  1.1                  jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata/FileSetDef.java
  
  Index: FileSetDef.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.avalon.phoenix.components.cpbuilder.metadata;
  
  /**
   * This class represent a set of files anchored in a base
   * directory. The set of files is determined by the include and
   * excludes that are specified for fileset. If no includes or
   * excludes are specified then all files in base directory
   * are added to fileset.
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/09/01 04:11:46 $
   */
  public class FileSetDef
  {
      /**
       * The base directory from which to apply all the
       * includes/excludes.
       */
      private final String m_baseDirectory;
  
      /**
       * The set of patterns to include in fileset.
       */
      private final String[] m_includes;
  
      /**
       * The set of patterns to exclude from fileset.
       */
      private final String[] m_excludes;
  
      public FileSetDef( final String baseDirectory,
                         final String[] includes,
                         final String[] excludes )
      {
          if( null == baseDirectory )
          {
              throw new NullPointerException( "baseDirectory" );
          }
          if( null == includes )
          {
              throw new NullPointerException( "includes" );
          }
          if( null == excludes )
          {
              throw new NullPointerException( "excludes" );
          }
  
          m_baseDirectory = baseDirectory;
          m_includes = includes;
          m_excludes = excludes;
      }
  
      /**
       * Return the base directory of fileset.
       *
       * @return the base directory of fileset.
       */
      public String getBaseDirectory()
      {
          return m_baseDirectory;
      }
  
      /**
       * Return the list of includes for fileset.
       *
       * @return the list of includes for fileset.
       */
      public String[] getIncludes()
      {
          return m_includes;
      }
  
      /**
       * Return the list of excludes for fileset.
       *
       * @return the list of excludes for fileset.
       */
      public String[] getExcludes()
      {
          return m_excludes;
      }
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message