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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to