Browse Source

fix signature of JUnitTask#addClasspathEntry

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@491719 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
b120eead1b
1 changed files with 13 additions and 3 deletions
  1. +13
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

+ 13
- 3
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java View File

@@ -667,7 +667,7 @@ public class JUnitTask extends Task {
*/
public void init() {
antRuntimeClasses = new Path(getProject());
splitJunit = !addClasspathEntry("/junit/framework/TestCase.class");
splitJunit = !addClasspathResource("/junit/framework/TestCase.class");
addClasspathEntry("/org/apache/tools/ant/launch/AntMain.class");
addClasspathEntry("/org/apache/tools/ant/Task.class");
addClasspathEntry("/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.class");
@@ -1405,10 +1405,20 @@ public class JUnitTask extends Task {
* getResource doesn't contain the name of the archive.</p>
*
* @param resource resource that one wants to lookup
* @return true if something was in fact added
* @since Ant 1.4
*/
protected boolean addClasspathEntry(String resource) {
protected void addClasspathEntry(String resource) {
addClasspathResource(resource);
}

/**
* Implementation of addClasspathEntry.
*
* @param resource resource that one wants to lookup
* @return true if something was in fact added
* @since Ant 1.7.1
*/
private boolean addClasspathResource(String resource) {
/*
* pre Ant 1.6 this method used to call getClass().getResource
* while Ant 1.6 will call ClassLoader.getResource().


Loading…
Cancel
Save