ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTask.java
Date Thu, 07 Oct 2004 16:15:36 GMT
mbenson     2004/10/07 09:15:36

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        JUnitTask.java
  Log:
  Make Gump happy
  
  Revision  Changes    Path
  1.108     +7 -3      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.107
  retrieving revision 1.108
  diff -u -r1.107 -r1.108
  --- JUnitTask.java	6 Oct 2004 15:48:15 -0000	1.107
  +++ JUnitTask.java	7 Oct 2004 16:15:36 -0000	1.108
  @@ -778,8 +778,12 @@
                   Project.MSG_WARN);
           }
   
  -        CommandlineJava cmd = (CommandlineJava) getCommandline().clone();
  -
  +        CommandlineJava cmd = null;
  +        try {
  +            cmd = (CommandlineJava)(getCommandline().clone());
  +        } catch (CloneNotSupportedException e) {
  +            throw new BuildException("This shouldn't happen", e, getLocation());
  +        }
           cmd.setClassname("org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner");
           if (casesFile == null) {
               cmd.createArgument().setValue(test.getName());
  
  
  

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


Mime
View raw message