git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268676 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -558,9 +558,6 @@ | |||||
| <exclude name="org/apache/tools/ant/taskdefs/TaskdefsTest.java" /> | <exclude name="org/apache/tools/ant/taskdefs/TaskdefsTest.java" /> | ||||
| <exclude name="org/apache/tools/ant/util/regexp/RegexpMatcherTest.java" /> | <exclude name="org/apache/tools/ant/util/regexp/RegexpMatcherTest.java" /> | ||||
| <!-- currently fails - will be sorted out soon --> | |||||
| <exclude name="org/apache/tools/ant/types/CommandlineJavaTest.java" /> | |||||
| <!-- these depend on order --> | <!-- these depend on order --> | ||||
| <exclude name="org/apache/tools/ant/taskdefs/GUnzipTest.java" /> | <exclude name="org/apache/tools/ant/taskdefs/GUnzipTest.java" /> | ||||
| <exclude name="org/apache/tools/ant/taskdefs/GzipTest.java" /> | <exclude name="org/apache/tools/ant/taskdefs/GzipTest.java" /> | ||||
| @@ -172,9 +172,10 @@ public class CommandlineJava implements Cloneable { | |||||
| } | } | ||||
| public String[] getCommandline() { | public String[] getCommandline() { | ||||
| Path fullClasspath = classpath != null ? classpath.concatSystemClasspath("ignore") : null; | |||||
| int size = | int size = | ||||
| vmCommand.size() + javaCommand.size() + sysProperties.size(); | vmCommand.size() + javaCommand.size() + sysProperties.size(); | ||||
| if (classpath != null && classpath.size() > 0) { | |||||
| if (fullClasspath != null && fullClasspath.size() > 0) { | |||||
| size += 2; | size += 2; | ||||
| } | } | ||||
| @@ -188,9 +189,9 @@ public class CommandlineJava implements Cloneable { | |||||
| result, pos, sysProperties.size()); | result, pos, sysProperties.size()); | ||||
| pos += sysProperties.size(); | pos += sysProperties.size(); | ||||
| } | } | ||||
| if (classpath != null && classpath.size() > 0) { | |||||
| if (fullClasspath != null && fullClasspath.size() > 0) { | |||||
| result[pos++] = "-classpath"; | result[pos++] = "-classpath"; | ||||
| result[pos++] = classpath.concatSystemClasspath("ignore").toString(); | |||||
| result[pos++] = fullClasspath.toString(); | |||||
| } | } | ||||
| System.arraycopy(javaCommand.getCommandline(), 0, | System.arraycopy(javaCommand.getCommandline(), 0, | ||||
| result, pos, javaCommand.size()); | result, pos, javaCommand.size()); | ||||
| @@ -89,7 +89,6 @@ public class ExecuteWatchdogTest extends TestCase { | |||||
| System.err.println("WARNING: 'build.tests' property is not available !"); | System.err.println("WARNING: 'build.tests' property is not available !"); | ||||
| classpath = System.getProperty("java.class.path"); | classpath = System.getProperty("java.class.path"); | ||||
| } | } | ||||
| System.out.println("Using classpath: " + classpath); | |||||
| return classpath; | return classpath; | ||||
| } | } | ||||