mirror of https://github.com/sbt/sbt.git
not necessary to rewrap TaskDef in FrameworkWrapper.createTask
This commit is contained in:
parent
019920c138
commit
ba28e5b505
|
|
@ -172,13 +172,12 @@ class RunnerWrapper implements Runner {
|
||||||
Task[] tasks = new Task[length];
|
Task[] tasks = new Task[length];
|
||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
TaskDef taskDef = taskDefs[i];
|
TaskDef taskDef = taskDefs[i];
|
||||||
tasks[i] = createTask(taskDef.fullyQualifiedName(), taskDef.fingerprint(), taskDef.explicitlySpecified(), taskDef.selectors());
|
tasks[i] = createTask(taskDef);
|
||||||
}
|
}
|
||||||
return tasks;
|
return tasks;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task createTask(final String fullyQualifiedName, final Fingerprint fingerprint, boolean explicitlySpecified, Selector[] selectors) {
|
public Task createTask(final TaskDef taskDef) {
|
||||||
final TaskDef taskDef = new TaskDef(fullyQualifiedName, fingerprint, explicitlySpecified, selectors);
|
|
||||||
return new Task() {
|
return new Task() {
|
||||||
public String[] tags() {
|
public String[] tags() {
|
||||||
return new String[0]; // Old framework does not support tags
|
return new String[0]; // Old framework does not support tags
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue