tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmand...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant JkData.java
Date Fri, 04 Apr 2003 20:17:52 GMT
mmanders    2003/04/04 12:17:52

  Modified:    jk/jkant/java/org/apache/jk/ant JkData.java
  Log:
  Added "unless" conditional support.
  
  Revision  Changes    Path
  1.2       +7 -0      jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/JkData.java
  
  Index: JkData.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/JkData.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JkData.java	7 Nov 2001 23:06:57 -0000	1.1
  +++ JkData.java	4 Apr 2003 20:17:52 -0000	1.2
  @@ -76,6 +76,7 @@
       private String value;
       private boolean isfile = false;
       private String ifCond;
  +    String unlessCond;
       Project project;
       
       
  @@ -108,9 +109,15 @@
           ifCond = s;
       }
   
  +    public void setUnless( String s ) {
  +        unlessCond = s;
  +    }
  +
       public String getValue()
       {
           if( ifCond!=null && project.getProperty(ifCond) == null )
  +            return null;
  +        if (unlessCond != null && project.getProperty(unlessCond) != null) 
               return null;
           return value;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message