peterreilly    2005/01/24 02:28:04

  Modified:    src/main/org/apache/tools/ant/types/selectors Tag:
                        ANT_16_BRANCH SizeSelector.java
  Log:
  sync
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.5   +17 -14    
ant/src/main/org/apache/tools/ant/types/selectors/SizeSelector.java
  
  Index: SizeSelector.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/types/selectors/SizeSelector.java,v
  retrieving revision 1.7.2.4
  retrieving revision 1.7.2.5
  diff -u -r1.7.2.4 -r1.7.2.5
  --- SizeSelector.java 9 Mar 2004 17:01:56 -0000       1.7.2.4
  +++ SizeSelector.java 24 Jan 2005 10:28:03 -0000      1.7.2.5
  @@ -1,5 +1,5 @@
   /*
  - * Copyright  2002-2004 The Apache Software Foundation
  + * Copyright  2002-2005 The Apache Software Foundation
    *
    *  Licensed under the Apache License, Version 2.0 (the "License");
    *  you may not use this file except in compliance with the License.
  @@ -48,6 +48,9 @@
       }
   
       /**
  +     * Returns a <code>String</code> object representing the specified
  +     * SizeSelector. This is "{sizeselector value: " + <"compare",
  +     * "less", "more", "equal"> + "}".
        * @return a string describing this object
        */
       public String toString() {
  @@ -70,7 +73,7 @@
        * This will be further modified by the multiplier to get an
        * actual size limit.
        *
  -     * @param size the size to select against expressed in units
  +     * @param size the size to select against expressed in units.
        */
       public void setValue(long size) {
           this.size = size;
  @@ -103,7 +106,7 @@
        * multiplier.
        *
        * @param units The units to compare the size to, using an
  -     *        EnumeratedAttribute
  +     *        EnumeratedAttribute.
        */
       public void setUnits(ByteUnits units) {
           int i = units.getIndex();
  @@ -135,17 +138,17 @@
        * when the file matches a particular size, when it is smaller,
        * or whether it is larger.
        *
  -     * @param cmp The comparison to perform, an EnumeratedAttribute
  +     * @param scmp The comparison to perform, an EnumeratedAttribute.
        */
  -    public void setWhen(SizeComparisons cmp) {
  -        this.cmp = cmp.getIndex();
  +    public void setWhen(SizeComparisons scmp) {
  +        this.cmp = scmp.getIndex();
       }
   
       /**
        * When using this as a custom selector, this method will be called.
        * It translates each parameter into the appropriate setXXX() call.
        *
  -     * @param parameters the complete set of parameters for this selector
  +     * @param parameters the complete set of parameters for this selector.
        */
       public void setParameters(Parameter[] parameters) {
           super.setParameters(parameters);
  @@ -165,9 +168,9 @@
                       units.setValue(parameters[i].getValue());
                       setUnits(units);
                   } else if (WHEN_KEY.equalsIgnoreCase(paramname)) {
  -                    SizeComparisons cmp = new SizeComparisons();
  -                    cmp.setValue(parameters[i].getValue());
  -                    setWhen(cmp);
  +                    SizeComparisons scmp = new SizeComparisons();
  +                    scmp.setValue(parameters[i].getValue());
  +                    setWhen(scmp);
                   } else {
                       setError("Invalid parameter " + paramname);
                   }
  @@ -199,10 +202,10 @@
        * The heart of the matter. This is where the selector gets to decide
        * on the inclusion of a file in a particular fileset.
        *
  -     * @param basedir A java.io.File object for the base directory
  -     * @param filename The name of the file to check
  -     * @param file A File object for this filename
  -     * @return whether the file should be selected or not
  +     * @param basedir A java.io.File object for the base directory.
  +     * @param filename The name of the file to check.
  +     * @param file A File object for this filename.
  +     * @return whether the file should be selected or not.
        */
       public boolean isSelected(File basedir, String filename, File file) {
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to