You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ni...@apache.org on 2001/02/08 01:53:59 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types CommandlineJava.java

nico        01/02/07 16:53:58

  Modified:    src/main/org/apache/tools/ant/types Tag: ANT_13_BRANCH
                        CommandlineJava.java
  Log:
  Fix for Bug #543: JUnit-task failed if used without a classpath because CommandlineJava tried to clone this null-classpath.
  
  Submitted by: Stephane Bailliez <sb...@imediation.com>
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.9.2.1   +3 -1      jakarta-ant/src/main/org/apache/tools/ant/types/CommandlineJava.java
  
  Index: CommandlineJava.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/CommandlineJava.java,v
  retrieving revision 1.9
  retrieving revision 1.9.2.1
  diff -u -r1.9 -r1.9.2.1
  --- CommandlineJava.java	2001/01/19 13:27:00	1.9
  +++ CommandlineJava.java	2001/02/08 00:53:54	1.9.2.1
  @@ -239,7 +239,9 @@
           c.vmCommand = (Commandline) vmCommand.clone();
           c.javaCommand = (Commandline) javaCommand.clone();
           c.sysProperties = (SysProperties) sysProperties.clone();
  -        c.classpath = (Path) classpath.clone();
  +        if (classpath != null) {
  +            c.classpath = (Path) classpath.clone();
  +        }
           c.vmVersion = vmVersion;
           return c;
       }