ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/file CopyTask.java
Date Thu, 11 Jul 2002 00:42:37 GMT
donaldp     2002/07/10 17:42:37

  Modified:    antlib/src/java/org/apache/antlib/archive BUnzip2.java
                        BZip2.java GUnzip.java GZip.java Pack.java
                        Unpack.java
               antlib/src/java/org/apache/antlib/build BuildNumber.java
                        Checksum.java Patch.java SleepTask.java
                        UpToDateCondition.java
               antlib/src/java/org/apache/antlib/core
                        AbstractAvailableCondition.java
                        ClassAvailableCondition.java ConditionTask.java
                        ExtFileNameMapper.java Fail.java FileTokenSet.java
                        FlatFileNameMapper.java IfTask.java
                        IncludeTask.java IsInstanceCondition.java
                        LoadDOMTask.java LoadPropertyFileTask.java
                        LoadPropertyResourceTask.java Property.java
                        PropertyDump.java PropertyTokenSet.java
                        ResourceAvailableCondition.java
                        SingletonTokenSet.java StringToEnumConverter.java
                        StringToLogLevelConverter.java
               antlib/src/java/org/apache/antlib/cvslib ChangeLog.java
                        ChangeLogParser.java ChangeLogWriter.java Cvs.java
                        CVSEntry.java CvsUser.java RCSFile.java
               antlib/src/java/org/apache/antlib/extensions
                        ExtensionAdapter.java ExtensionSet.java
                        ExtensionUtil.java ExtraAttribute.java
                        JarLibDisplayTask.java LibFileSet.java
                        LibraryDisplayer.java
               antlib/src/java/org/apache/antlib/file CopyTask.java
  Log:
  Add in some finals
  
  Revision  Changes    Path
  1.3       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/BUnzip2.java
  
  Index: BUnzip2.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/BUnzip2.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BUnzip2.java	5 Jul 2002 03:21:52 -0000	1.2
  +++ BUnzip2.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -19,7 +19,7 @@
    * @author <a href="mailto:umagesh@rediffmail.com">Magesh Umasankar</a>
    * @ant.task name="bunzip2"
    */
  -public class BUnzip2
  +public final class BUnzip2
       extends Unpack
   {
       private static final String DEFAULT_EXTENSION = ".bz2";
  
  
  
  1.2       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/BZip2.java
  
  Index: BZip2.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/BZip2.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BZip2.java	14 Apr 2002 10:54:02 -0000	1.1
  +++ BZip2.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -20,7 +20,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @ant.task name="bzip2"
    */
  -public class BZip2
  +public final class BZip2
       extends Pack
   {
       private static final byte[] HEADER = new byte[]{(byte)'B', (byte)'Z'};
  
  
  
  1.2       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/GUnzip.java
  
  Index: GUnzip.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/GUnzip.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GUnzip.java	14 Apr 2002 10:54:02 -0000	1.1
  +++ GUnzip.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -20,7 +20,7 @@
    * @author <a href="mailto:umagesh@rediffmail.com">Magesh Umasankar</a>
    * @ant.task name="gunzip"
    */
  -public class GUnzip
  +public final class GUnzip
       extends Unpack
   {
       private static final String DEFAULT_EXTENSION = ".gz";
  
  
  
  1.2       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/GZip.java
  
  Index: GZip.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/GZip.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GZip.java	14 Apr 2002 10:54:02 -0000	1.1
  +++ GZip.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -22,7 +22,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @ant.task name="gzip"
    */
  -public class GZip
  +public final class GZip
       extends Pack
   {
       protected OutputStream getPackingStream( final OutputStream output )
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/Pack.java
  
  Index: Pack.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/Pack.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Pack.java	14 Apr 2002 10:54:02 -0000	1.1
  +++ Pack.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -28,12 +28,12 @@
       private File m_src;
       private File m_zipFile;
   
  -    public void setSrc( final File src )
  +    public final void setSrc( final File src )
       {
           m_src = src;
       }
   
  -    public void setZipfile( final File zipFile )
  +    public final void setZipfile( final File zipFile )
       {
           m_zipFile = zipFile;
       }
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/Unpack.java
  
  Index: Unpack.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/archive/Unpack.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Unpack.java	5 Jul 2002 03:26:22 -0000	1.2
  +++ Unpack.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -30,12 +30,12 @@
       private File m_dest;
       private File m_src;
   
  -    public void setDest( final File dest )
  +    public final void setDest( final File dest )
       {
           m_dest = dest;
       }
   
  -    public void setSrc( final File src )
  +    public final void setSrc( final File src )
       {
           m_src = src;
       }
  
  
  
  1.3       +3 -3      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/BuildNumber.java
  
  Index: BuildNumber.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/BuildNumber.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BuildNumber.java	23 May 2002 01:50:24 -0000	1.2
  +++ BuildNumber.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -30,7 +30,7 @@
    * @version $Revision$ $Date$
    * @ant.task name="build-number"
    */
  -public class BuildNumber
  +public final class BuildNumber
       extends AbstractTask
   {
       private static final Resources REZ =
  @@ -57,7 +57,7 @@
        *
        * @param file the file in which build number is stored.
        */
  -    public void setFile( final File file )
  +    public final void setFile( final File file )
       {
           m_file = file;
       }
  
  
  
  1.3       +4 -4      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/Checksum.java
  
  Index: Checksum.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/Checksum.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Checksum.java	23 May 2002 01:50:24 -0000	1.2
  +++ Checksum.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -34,7 +34,7 @@
    * @author <a href="mailto:umagesh@rediffmail.com">Magesh Umasankar</a>
    * @version $Revision$ $Date$
    */
  -public class Checksum
  +public final class Checksum
       extends AbstractMatchingTask
   {
       /**
  @@ -55,12 +55,12 @@
       /**
        * ArrayList to hold source file sets.
        */
  -    private ArrayList m_filesets = new ArrayList();
  +    private final ArrayList m_filesets = new ArrayList();
   
       /**
        * Stores SourceFile, DestFile pairs and SourceFile, Property String pairs.
        */
  -    private Hashtable m_includeFileMap = new Hashtable();
  +    private final Hashtable m_includeFileMap = new Hashtable();
   
       /**
        * File Extension that is be to used to create or identify destination file
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/Patch.java
  
  Index: Patch.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/Patch.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Patch.java	5 Jul 2002 03:21:52 -0000	1.2
  +++ Patch.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -22,7 +22,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @version $Revision$ $Date$
    */
  -public class Patch
  +public final class Patch
       extends AbstractTask
   {
       private static final Resources REZ =
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/SleepTask.java
  
  Index: SleepTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/SleepTask.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SleepTask.java	23 May 2002 01:50:24 -0000	1.2
  +++ SleepTask.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -19,7 +19,7 @@
    * @author steve_l@iseran.com steve loughran
    * @version $Revision$ $Date$
    */
  -public class SleepTask
  +public final class SleepTask
       extends AbstractTask
   {
       private static final Resources REZ =
  
  
  
  1.4       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/UpToDateCondition.java
  
  Index: UpToDateCondition.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/build/UpToDateCondition.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- UpToDateCondition.java	5 Jul 2002 03:29:06 -0000	1.3
  +++ UpToDateCondition.java	11 Jul 2002 00:42:36 -0000	1.4
  @@ -32,7 +32,7 @@
    *
    * @ant.type type="condition" name="uptodate"
    */
  -public class UpToDateCondition
  +public final class UpToDateCondition
       implements Condition
   {
       private final ArrayList m_fileSets = new ArrayList();
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/AbstractAvailableCondition.java
  
  Index: AbstractAvailableCondition.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/AbstractAvailableCondition.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractAvailableCondition.java	5 Jul 2002 03:21:52 -0000	1.2
  +++ AbstractAvailableCondition.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -23,7 +23,7 @@
   public abstract class AbstractAvailableCondition
       implements Condition
   {
  -    private Path m_classpath = new Path();
  +    private final Path m_classpath = new Path();
   
       /**
        * Adds a classpath element.
  
  
  
  1.2       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/ClassAvailableCondition.java
  
  Index: ClassAvailableCondition.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/ClassAvailableCondition.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassAvailableCondition.java	14 Apr 2002 10:55:08 -0000	1.1
  +++ ClassAvailableCondition.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -21,7 +21,7 @@
    *
    * @ant.type type="condition" name="class-available"
    */
  -public class ClassAvailableCondition
  +public final class ClassAvailableCondition
       extends AbstractAvailableCondition
       implements Condition
   {
  
  
  
  1.2       +3 -3      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/ConditionTask.java
  
  Index: ConditionTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/ConditionTask.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ConditionTask.java	14 Apr 2002 10:55:08 -0000	1.1
  +++ ConditionTask.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -26,10 +26,10 @@
    *
    * @ant.task name="condition"
    */
  -public class ConditionTask
  +public final class ConditionTask
       extends AbstractTask
   {
  -    private AndCondition m_condition = new AndCondition();
  +    private final AndCondition m_condition = new AndCondition();
       private String m_property;
       private String m_value = "true";
   
  
  
  
  1.3       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/ExtFileNameMapper.java
  
  Index: ExtFileNameMapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/ExtFileNameMapper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ExtFileNameMapper.java	5 Jul 2002 03:21:52 -0000	1.2
  +++ ExtFileNameMapper.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -17,7 +17,7 @@
    *
    * @ant.type type="mapper" name="map-extension"
    */
  -public class ExtFileNameMapper
  +public final class ExtFileNameMapper
       implements FileNameMapper
   {
       private String m_extension;
  
  
  
  1.2       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/Fail.java
  
  Index: Fail.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/Fail.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Fail.java	14 Apr 2002 10:55:08 -0000	1.1
  +++ Fail.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -17,7 +17,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @ant.task name="fail"
    */
  -public class Fail
  +public final class Fail
       extends AbstractTask
   {
       private String m_message;
  
  
  
  1.2       +5 -5      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/FileTokenSet.java
  
  Index: FileTokenSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/FileTokenSet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FileTokenSet.java	14 Apr 2002 10:55:08 -0000	1.1
  +++ FileTokenSet.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -27,13 +27,13 @@
    *
    * @ant.type type="token-set" name="tokens-file"
    */
  -public class FileTokenSet
  +public final class FileTokenSet
       implements TokenSet
   {
  -    private static final Resources REZ
  -        = ResourceManager.getPackageResources( FileTokenSet.class );
  +    private static final Resources REZ =
  +        ResourceManager.getPackageResources( FileTokenSet.class );
   
  -    private Map m_tokens = new HashMap();
  +    private final Map m_tokens = new HashMap();
   
       /**
        * set the file containing the tokens for this tokenset.
  
  
  
  1.2       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/FlatFileNameMapper.java
  
  Index: FlatFileNameMapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/FlatFileNameMapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FlatFileNameMapper.java	14 Apr 2002 10:55:08 -0000	1.1
  +++ FlatFileNameMapper.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -20,7 +20,7 @@
    *
    * @ant.type type="mapper" name="flatten"
    */
  -public class FlatFileNameMapper
  +public final class FlatFileNameMapper
       extends PrefixFileNameMapper
       implements FileNameMapper
   {
  
  
  
  1.4       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/IfTask.java
  
  Index: IfTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/IfTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- IfTask.java	23 May 2002 01:50:24 -0000	1.3
  +++ IfTask.java	11 Jul 2002 00:42:36 -0000	1.4
  @@ -26,7 +26,7 @@
    * @version $Revision$ $Date$
    * @ant.task name="if"
    */
  -public class IfTask
  +public final class IfTask
       extends AbstractContainerTask
   {
       private static final Resources REZ =
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/IncludeTask.java
  
  Index: IncludeTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/IncludeTask.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IncludeTask.java	26 Jun 2002 02:12:36 -0000	1.1
  +++ IncludeTask.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -23,7 +23,7 @@
    *
    * @ant.task name="include"
    */
  -public class IncludeTask
  +public final class IncludeTask
       extends AbstractContainerTask
   {
       private static final Resources REZ =
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/IsInstanceCondition.java
  
  Index: IsInstanceCondition.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/IsInstanceCondition.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- IsInstanceCondition.java	5 Jul 2002 03:21:52 -0000	1.2
  +++ IsInstanceCondition.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -23,7 +23,7 @@
    *
    * @ant.type type="condition" name="is-instance"
    */
  -public class IsInstanceCondition
  +public final class IsInstanceCondition
       implements Condition
   {
       private static final Resources REZ =
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/LoadDOMTask.java
  
  Index: LoadDOMTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/LoadDOMTask.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LoadDOMTask.java	5 Jul 2002 03:21:52 -0000	1.2
  +++ LoadDOMTask.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -25,7 +25,7 @@
    *
    * @todo - Convert this task into a data-type, instead.
    */
  -public class LoadDOMTask
  +public final class LoadDOMTask
       extends AbstractTask
   {
       private static final Resources REZ =
  
  
  
  1.4       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/LoadPropertyFileTask.java
  
  Index: LoadPropertyFileTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/LoadPropertyFileTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LoadPropertyFileTask.java	2 Jun 2002 14:08:05 -0000	1.3
  +++ LoadPropertyFileTask.java	11 Jul 2002 00:42:36 -0000	1.4
  @@ -20,7 +20,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @ant.task name="load-properties"
    */
  -public class LoadPropertyFileTask
  +public final class LoadPropertyFileTask
       extends AbstractLoadPropertiesTask
   {
       private static final Resources REZ =
  
  
  
  1.4       +3 -3      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/LoadPropertyResourceTask.java
  
  Index: LoadPropertyResourceTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/LoadPropertyResourceTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LoadPropertyResourceTask.java	5 Jul 2002 03:21:52 -0000	1.3
  +++ LoadPropertyResourceTask.java	11 Jul 2002 00:42:36 -0000	1.4
  @@ -22,14 +22,14 @@
    *
    * @ant.task name="load-resource"
    */
  -public class LoadPropertyResourceTask
  +public final class LoadPropertyResourceTask
       extends AbstractLoadPropertiesTask
   {
       private static final Resources REZ =
           ResourceManager.getPackageResources( LoadPropertyResourceTask.class );
   
       private String m_resource;
  -    private Path m_classpath = new Path();
  +    private final Path m_classpath = new Path();
   
       public void addClasspath( final Path classpath )
       {
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/Property.java
  
  Index: Property.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/Property.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Property.java	25 Jun 2002 07:20:33 -0000	1.2
  +++ Property.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -21,7 +21,7 @@
    * @version $Revision$ $Date$
    * @ant.task name="property"
    */
  -public class Property
  +public final class Property
       extends AbstractTask
   {
       private static final Resources REZ =
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/PropertyDump.java
  
  Index: PropertyDump.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/PropertyDump.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PropertyDump.java	23 Apr 2002 01:51:41 -0000	1.2
  +++ PropertyDump.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -23,7 +23,7 @@
    * @ant.task name="property-dump"
    * @todo Consider moving to new antlib
    */
  -public class PropertyDump
  +public final class PropertyDump
       extends AbstractTask
   {
       /**
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/PropertyTokenSet.java
  
  Index: PropertyTokenSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/PropertyTokenSet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PropertyTokenSet.java	14 Apr 2002 10:55:08 -0000	1.1
  +++ PropertyTokenSet.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -19,7 +19,7 @@
    *
    * @ant.type type="token-set" name="properties"
    */
  -public class PropertyTokenSet
  +public final class PropertyTokenSet
       implements TokenSet
   {
       /**
  
  
  
  1.2       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/ResourceAvailableCondition.java
  
  Index: ResourceAvailableCondition.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/ResourceAvailableCondition.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ResourceAvailableCondition.java	14 Apr 2002 10:55:08 -0000	1.1
  +++ ResourceAvailableCondition.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -23,7 +23,7 @@
    *
    * @ant.type type="condition" name="resource-available"
    */
  -public class ResourceAvailableCondition
  +public final class ResourceAvailableCondition
       extends AbstractAvailableCondition
       implements Condition
   {
  
  
  
  1.2       +1 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/SingletonTokenSet.java
  
  Index: SingletonTokenSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/SingletonTokenSet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SingletonTokenSet.java	14 Apr 2002 10:55:08 -0000	1.1
  +++ SingletonTokenSet.java	11 Jul 2002 00:42:36 -0000	1.2
  @@ -15,11 +15,10 @@
    * A single token and its value.
    *
    * @author Michael McCallum
  - * @created 14 March 2001
    *
    * @ant.type type="token-set" name="token"
    */
  -public class SingletonTokenSet
  +public final class SingletonTokenSet
       implements TokenSet
   {
       /**
  
  
  
  1.3       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/StringToEnumConverter.java
  
  Index: StringToEnumConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/StringToEnumConverter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StringToEnumConverter.java	9 Jun 2002 13:11:24 -0000	1.2
  +++ StringToEnumConverter.java	11 Jul 2002 00:42:36 -0000	1.3
  @@ -21,7 +21,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @ant.converter source="java.lang.String" destination="org.apache.avalon.framework.Enum"
    */
  -public class StringToEnumConverter
  +public final class StringToEnumConverter
       implements Converter
   {
       private static final Resources REZ =
  
  
  
  1.4       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/StringToLogLevelConverter.java
  
  Index: StringToLogLevelConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/StringToLogLevelConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringToLogLevelConverter.java	9 Jun 2002 13:11:24 -0000	1.3
  +++ StringToLogLevelConverter.java	11 Jul 2002 00:42:36 -0000	1.4
  @@ -19,7 +19,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @ant.converter source="java.lang.String" destination="org.apache.myrmidon.api.event.LogLevel"
    */
  -public class StringToLogLevelConverter
  +public final class StringToLogLevelConverter
       extends AbstractConverter
   {
       private static final Resources REZ =
  
  
  
  1.3       +3 -3      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/ChangeLog.java
  
  Index: ChangeLog.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/ChangeLog.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ChangeLog.java	5 Jul 2002 03:21:52 -0000	1.2
  +++ ChangeLog.java	11 Jul 2002 00:42:37 -0000	1.3
  @@ -58,7 +58,7 @@
    * @version $Revision$ $Date$
    * @ant.task name="changelog"
    */
  -public class ChangeLog
  +public final class ChangeLog
       extends AbstractTask
   {
       private static final Resources REZ =
  @@ -68,7 +68,7 @@
       private File m_usersFile;
   
       /** User list */
  -    private Vector m_cvsUsers = new Vector();
  +    private final Vector m_cvsUsers = new Vector();
   
       /** Input dir */
       private File m_dir;
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/ChangeLogParser.java
  
  Index: ChangeLogParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/ChangeLogParser.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ChangeLogParser.java	6 May 2002 09:29:43 -0000	1.2
  +++ ChangeLogParser.java	11 Jul 2002 00:42:37 -0000	1.3
  @@ -23,7 +23,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @version $Revision$ $Date$
    */
  -class ChangeLogParser
  +final class ChangeLogParser
       implements ExecOutputHandler
   {
       private static final Resources REZ =
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/ChangeLogWriter.java
  
  Index: ChangeLogWriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/ChangeLogWriter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ChangeLogWriter.java	14 Apr 2002 10:56:02 -0000	1.1
  +++ ChangeLogWriter.java	11 Jul 2002 00:42:37 -0000	1.2
  @@ -17,7 +17,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @version $Revision$ $Date$
    */
  -class ChangeLogWriter
  +final class ChangeLogWriter
   {
       /** output format for dates writtn to xml file */
       private static final SimpleDateFormat c_outputDate = new SimpleDateFormat( "yyyy-MM-dd"
);
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/Cvs.java
  
  Index: Cvs.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/Cvs.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Cvs.java	5 Jul 2002 03:21:52 -0000	1.2
  +++ Cvs.java	11 Jul 2002 00:42:37 -0000	1.3
  @@ -25,7 +25,7 @@
    * @version $Revision$ $Date$
    * @ant.task name="cvs"
    */
  -public class Cvs
  +public final class Cvs
       extends AbstractTask
   {
       /**
  
  
  
  1.2       +3 -3      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/CVSEntry.java
  
  Index: CVSEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/CVSEntry.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CVSEntry.java	14 Apr 2002 10:56:02 -0000	1.1
  +++ CVSEntry.java	11 Jul 2002 00:42:37 -0000	1.2
  @@ -17,9 +17,9 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @version $Revision$ $Date$
    */
  -class CVSEntry
  +final class CVSEntry
   {
  -    private Date m_date;
  +    private final Date m_date;
       private final String m_author;
       private final String m_comment;
       private final ArrayList m_files = new ArrayList();
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/CvsUser.java
  
  Index: CvsUser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/CvsUser.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CvsUser.java	5 Jul 2002 03:21:52 -0000	1.2
  +++ CvsUser.java	11 Jul 2002 00:42:37 -0000	1.3
  @@ -18,7 +18,7 @@
    * @author <a href="mailto:jeff.martin@synamic.co.uk">Jeff Martin</a>
    * @version $Revision$ $Date$
    */
  -public class CvsUser
  +public final class CvsUser
   {
       private static final Resources REZ =
           ResourceManager.getPackageResources( CvsUser.class );
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/RCSFile.java
  
  Index: RCSFile.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/cvslib/RCSFile.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RCSFile.java	14 Apr 2002 10:56:03 -0000	1.1
  +++ RCSFile.java	11 Jul 2002 00:42:37 -0000	1.2
  @@ -14,7 +14,7 @@
    * @author <a href="mailto:jeff.martin@synamic.co.uk">Jeff Martin</a>
    * @version $Revision$ $Date$
    */
  -class RCSFile
  +final class RCSFile
   {
       private final String m_name;
       private final String m_revision;
  
  
  
  1.4       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/ExtensionAdapter.java
  
  Index: ExtensionAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/ExtensionAdapter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ExtensionAdapter.java	25 Jun 2002 07:44:18 -0000	1.3
  +++ ExtensionAdapter.java	11 Jul 2002 00:42:37 -0000	1.4
  @@ -21,7 +21,7 @@
    * @version $Revision$ $Date$
    * @ant.data-type name="extension"
    */
  -public class ExtensionAdapter
  +public final class ExtensionAdapter
   {
       private static final Resources REZ =
           ResourceManager.getPackageResources( ExtensionAdapter.class );
  
  
  
  1.3       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/ExtensionSet.java
  
  Index: ExtensionSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/ExtensionSet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ExtensionSet.java	25 Jun 2002 07:44:18 -0000	1.2
  +++ ExtensionSet.java	11 Jul 2002 00:42:37 -0000	1.3
  @@ -19,7 +19,7 @@
    * @version $Revision$ $Date$
    * @ant.data-type name="extension-set"
    */
  -public class ExtensionSet
  +public final class ExtensionSet
   {
       /**
        * ExtensionAdapter objects representing extensions.
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/ExtensionUtil.java
  
  Index: ExtensionUtil.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/ExtensionUtil.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExtensionUtil.java	14 Apr 2002 10:55:07 -0000	1.1
  +++ ExtensionUtil.java	11 Jul 2002 00:42:37 -0000	1.2
  @@ -22,7 +22,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @version $Revision$ $Date$
    */
  -public class ExtensionUtil
  +public final class ExtensionUtil
   {
       /**
        * Convert a list of extensionAdapter objects to extensions.
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/ExtraAttribute.java
  
  Index: ExtraAttribute.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/ExtraAttribute.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExtraAttribute.java	14 Apr 2002 10:55:07 -0000	1.1
  +++ ExtraAttribute.java	11 Jul 2002 00:42:37 -0000	1.2
  @@ -19,7 +19,7 @@
    * @todo Refactor this and all the other parameter, sysproperty,
    *   property etc into a single class in framework
    */
  -public class ExtraAttribute
  +public final class ExtraAttribute
   {
       private static final Resources REZ =
           ResourceManager.getPackageResources( ExtraAttribute.class );
  
  
  
  1.3       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/JarLibDisplayTask.java
  
  Index: JarLibDisplayTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/JarLibDisplayTask.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JarLibDisplayTask.java	6 May 2002 09:29:43 -0000	1.2
  +++ JarLibDisplayTask.java	11 Jul 2002 00:42:37 -0000	1.3
  @@ -32,7 +32,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @ant.task name="jarlib-display"
    */
  -public class JarLibDisplayTask
  +public final class JarLibDisplayTask
       extends AbstractTask
   {
       private static final Resources REZ =
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/LibFileSet.java
  
  Index: LibFileSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/LibFileSet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LibFileSet.java	14 Apr 2002 10:55:07 -0000	1.1
  +++ LibFileSet.java	11 Jul 2002 00:42:37 -0000	1.2
  @@ -17,7 +17,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @version $Revision$ $Date$
    */
  -public class LibFileSet
  +public final class LibFileSet
       extends FileSet
   {
       /**
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/LibraryDisplayer.java
  
  Index: LibraryDisplayer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/extensions/LibraryDisplayer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LibraryDisplayer.java	14 Apr 2002 10:55:07 -0000	1.1
  +++ LibraryDisplayer.java	11 Jul 2002 00:42:37 -0000	1.2
  @@ -24,7 +24,7 @@
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @version $Revision$ $Date$
    */
  -class LibraryDisplayer
  +final class LibraryDisplayer
   {
       /**
        * Display the extensions and specifications contained
  
  
  
  1.4       +4 -5      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/file/CopyTask.java
  
  Index: CopyTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/file/CopyTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CopyTask.java	5 Jul 2002 03:21:52 -0000	1.3
  +++ CopyTask.java	11 Jul 2002 00:42:37 -0000	1.4
  @@ -43,7 +43,7 @@
           ResourceManager.getPackageResources( CopyTask.class );
   
       private File m_file;
  -    private ArrayList m_filesets = new ArrayList();
  +    private final ArrayList m_filesets = new ArrayList();
       private File m_destFile;
       private File m_destDir;
       private boolean m_preserveLastModified;
  @@ -51,8 +51,8 @@
       private boolean m_includeEmpty = true;
       private FileNameMapper m_mapper;
   
  -    private HashMap m_fileMap = new HashMap();
  -    private HashMap m_dirMap = new HashMap();
  +    private final HashMap m_fileMap = new HashMap();
  +    private final HashMap m_dirMap = new HashMap();
   
       /**
        * Sets a single source file to copy.
  @@ -385,7 +385,6 @@
        * Utility method to determine and retrieve FilenameMapper.
        */
       private FileNameMapper getFilenameMapper()
  -        throws TaskException
       {
           if( null != m_mapper )
           {
  
  
  

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


Mime
View raw message