Skip to content
Browse files

not necessary to rewrap TaskDef in FrameworkWrapper.createTask

  • Loading branch information...
1 parent 019920c commit ba28e5b505dd45dec0e60515641dd9d620797c56 @harrah harrah committed Jun 28, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 testing/agent/src/main/java/sbt/FrameworkWrapper.java
View
5 testing/agent/src/main/java/sbt/FrameworkWrapper.java
@@ -172,13 +172,12 @@ public RunnerWrapper(org.scalatools.testing.Framework oldFramework, ClassLoader
Task[] tasks = new Task[length];
for (int i = 0; i < length; i++) {
TaskDef taskDef = taskDefs[i];
- tasks[i] = createTask(taskDef.fullyQualifiedName(), taskDef.fingerprint(), taskDef.explicitlySpecified(), taskDef.selectors());
+ tasks[i] = createTask(taskDef);
}
return tasks;
}
- public Task createTask(final String fullyQualifiedName, final Fingerprint fingerprint, boolean explicitlySpecified, Selector[] selectors) {
- final TaskDef taskDef = new TaskDef(fullyQualifiedName, fingerprint, explicitlySpecified, selectors);
+ public Task createTask(final TaskDef taskDef) {
return new Task() {
public String[] tags() {
return new String[0]; // Old framework does not support tags

0 comments on commit ba28e5b

Please sign in to comment.
Something went wrong with that request. Please try again.