Browse Source

Project no longer needed here

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270718 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
d31e90a9e2
4 changed files with 6 additions and 36 deletions
  1. +1
    -16
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
  2. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
  3. +1
    -16
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
  4. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

+ 1
- 16
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java View File

@@ -12,7 +12,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.types.DirectoryScanner;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.FileSet;

@@ -39,21 +39,6 @@ public final class BatchTest extends BaseTest
*/
private ArrayList filesets = new ArrayList();

/**
* the reference to the project
*/
private Project project;

/**
* create a new batchtest instance
*
* @param project the project it depends on.
*/
public BatchTest( Project project )
{
this.project = project;
}

/**
* Convenient method to convert a pathname without extension to a fully
* qualified classname. For example <tt>org/apache/Whatever</tt> will be


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

@@ -336,7 +336,7 @@ public class JUnitTask extends Task
*/
public BatchTest createBatchTest()
{
BatchTest test = new BatchTest( getProject() );
BatchTest test = new BatchTest();
batchTests.add( test );
return test;
}
@@ -384,7 +384,7 @@ public class JUnitTask extends Task
while( list.hasNext() )
{
JUnitTest test = (JUnitTest)list.next();
if( test.shouldRun( getProject() ) )
if( test.shouldRun( null ) )
{
execute( test );
}


+ 1
- 16
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java View File

@@ -12,7 +12,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.types.DirectoryScanner;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.FileSet;

@@ -39,21 +39,6 @@ public final class BatchTest extends BaseTest
*/
private ArrayList filesets = new ArrayList();

/**
* the reference to the project
*/
private Project project;

/**
* create a new batchtest instance
*
* @param project the project it depends on.
*/
public BatchTest( Project project )
{
this.project = project;
}

/**
* Convenient method to convert a pathname without extension to a fully
* qualified classname. For example <tt>org/apache/Whatever</tt> will be


+ 2
- 2
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java View File

@@ -336,7 +336,7 @@ public class JUnitTask extends Task
*/
public BatchTest createBatchTest()
{
BatchTest test = new BatchTest( getProject() );
BatchTest test = new BatchTest();
batchTests.add( test );
return test;
}
@@ -384,7 +384,7 @@ public class JUnitTask extends Task
while( list.hasNext() )
{
JUnitTest test = (JUnitTest)list.next();
if( test.shouldRun( getProject() ) )
if( test.shouldRun( null ) )
{
execute( test );
}


Loading…
Cancel
Save