ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types FilterSet.java
Date Tue, 13 Nov 2001 14:58:01 GMT
bodewig     01/11/13 06:58:01

  Modified:    src/main/org/apache/tools/ant/types FilterSet.java
  Log:
  sanity check filter tokens.
  
  PR: 4634
  
  Revision  Changes    Path
  1.6       +6 -0      jakarta-ant/src/main/org/apache/tools/ant/types/FilterSet.java
  
  Index: FilterSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/FilterSet.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- FilterSet.java	2001/10/28 21:27:19	1.5
  +++ FilterSet.java	2001/11/13 14:58:01	1.6
  @@ -245,6 +245,9 @@
           if (isReference()) {
               throw tooManyAttributes();
           }
  +        if (startOfToken == null || "".equals(startOfToken)) {
  +            throw new BuildException("beginToken must not be empty");
  +        }
           this.startOfToken = startOfToken;
       }
   
  @@ -264,6 +267,9 @@
       public void setEndToken( String endOfToken ) {
           if (isReference()) {
               throw tooManyAttributes();
  +        }
  +        if (endOfToken == null || "".equals(endOfToken)) {
  +            throw new BuildException("endToken must not be empty");
           }
           this.endOfToken = endOfToken;
       }
  
  
  

--
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