ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs ConditionTask.java
Date Wed, 22 May 2002 17:36:48 GMT
stevel      02/05/22 10:36:48

  Modified:    src/main/org/apache/tools/ant/taskdefs Tag: ANT_15_BRANCH
                        ConditionTask.java
  Log:
  extra helpful debug information when trying to track down obscure things
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.10.2.1  +7 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ConditionTask.java
  
  Index: ConditionTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ConditionTask.java,v
  retrieving revision 1.10
  retrieving revision 1.10.2.1
  diff -u -r1.10 -r1.10.2.1
  --- ConditionTask.java	15 Apr 2002 15:33:08 -0000	1.10
  +++ ConditionTask.java	22 May 2002 17:36:48 -0000	1.10.2.1
  @@ -55,6 +55,7 @@
   package org.apache.tools.ant.taskdefs;
   
   import org.apache.tools.ant.BuildException;
  +import org.apache.tools.ant.Project;
   import org.apache.tools.ant.taskdefs.condition.Condition;
   import org.apache.tools.ant.taskdefs.condition.ConditionBase;
   
  @@ -69,7 +70,7 @@
    * ConditionBase.</p>
    *
    * @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a>
  - * @version $Revision: 1.10 $
  + * @version $Revision: 1.10.2.1 $
    *
    * @since Ant 1.4
    *
  @@ -114,7 +115,12 @@
           
           Condition c = (Condition) getConditions().nextElement();
           if (c.eval()) {
  +            log("Condition true; setting "+property+" to "+value,
  +                Project.MSG_DEBUG);
               getProject().setNewProperty(property, value);
  +        } else {
  +            log("Condition false; not setting "+property,
  +                Project.MSG_DEBUG);
           }
       }
   }
  
  
  

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