arnout      00/05/23 23:45:06

  Modified:    src/main/org/apache/tools/ant/taskdefs Cvs.java
  Log:
  Fixed problem when an empty tag was supplied.
  
  Submitted by: Jean-Noel Gadreau <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.4       +10 -3     
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Cvs.java
  
  Index: Cvs.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Cvs.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Cvs.java  2000/01/30 17:15:32     1.3
  +++ Cvs.java  2000/05/24 06:45:05     1.4
  @@ -97,9 +97,16 @@
        this.pack = p;
       }
   
  -    public void setTag(String p) {
  -     this.tag = p;
  -    }
  +    public void setTag(String p) { 
  +        // Check if not real tag => set it to null 
  +        if (p != null) { 
  +            if (p.trim().equals("")) 
  +                p = null; 
  +        } 
  +
  +        this.tag = p; 
  +    } 
  +
   }
   
   
  
  
  

Reply via email to