ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r491719 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
Date Tue, 02 Jan 2007 00:19:14 GMT
Author: peterreilly
Date: Mon Jan  1 16:19:13 2007
New Revision: 491719

URL: http://svn.apache.org/viewvc?view=rev&rev=491719
Log:
fix signature of JUnitTask#addClasspathEntry

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java?view=diff&rev=491719&r1=491718&r2=491719
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java Mon
Jan  1 16:19:13 2007
@@ -667,7 +667,7 @@
      */
     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 @@
      * 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().



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


Mime
View raw message