ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTask.java
Date Wed, 13 Aug 2003 13:28:12 GMT
bodewig     2003/08/13 06:28:12

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        JUnitTask.java
  Log:
  enable assertions for <junit> the same way as <java> uses them
  
  Revision  Changes    Path
  1.76      +11 -1     ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
  
  Index: JUnitTask.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- JUnitTask.java	22 Jul 2003 07:56:14 -0000	1.75
  +++ JUnitTask.java	13 Aug 2003 13:28:12 -0000	1.76
  @@ -70,6 +70,7 @@
   import org.apache.tools.ant.taskdefs.ExecuteWatchdog;
   import org.apache.tools.ant.taskdefs.LogOutputStream;
   import org.apache.tools.ant.taskdefs.LogStreamHandler;
  +import org.apache.tools.ant.types.Assertions;
   import org.apache.tools.ant.types.Commandline;
   import org.apache.tools.ant.types.CommandlineJava;
   import org.apache.tools.ant.types.EnumeratedAttribute;
  @@ -558,6 +559,15 @@
        */
       public void setShowOutput(boolean showOutput) {
           this.showOutput = showOutput;
  +    }
  +
  +    /**
  +     * Assertions to enable in this program (if fork=true)
  +     * @since Ant 1.6
  +     * @param asserts assertion set 
  +     */
  +    public void setAssertions(Assertions asserts) {
  +        commandline.setAssertions(asserts);
       }
   
       /**
  
  
  

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


Mime
View raw message