Browse Source

#53571: ClassLoader problems with Subclass of JUnitTask

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1363748 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 13 years ago
parent
commit
e8a0f1f130
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      WHATSNEW
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

+ 3
- 0
WHATSNEW View File

@@ -17,6 +17,9 @@ Changes that could break older environments:
Fixed bugs: Fixed bugs:
----------- -----------


* Subclasses of JUnitTask did not correctly find junit.jar.
Bugzilla Report 53571.

* External XML catalog resolver failed to use project basedir when given an * External XML catalog resolver failed to use project basedir when given an
unmentioned relative path like the internal resolver does. unmentioned relative path like the internal resolver does.
Bugzilla Report 52754. Bugzilla Report 52754.


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

@@ -1579,7 +1579,7 @@ public class JUnitTask extends Task {
+ resource; + resource;
} }


File f = LoaderUtils.getResourceSource(getClass().getClassLoader(),
File f = LoaderUtils.getResourceSource(JUnitTask.class.getClassLoader(),
resource); resource);
if (f != null) { if (f != null) {
log("Found " + f.getAbsolutePath(), Project.MSG_DEBUG); log("Found " + f.getAbsolutePath(), Project.MSG_DEBUG);


Loading…
Cancel
Save