backport FernFlowerTask and relevant systems from 0.3

This commit is contained in:
Adrian Siekierka
2019-04-22 13:37:14 +02:00
parent 3094d70731
commit b37079c931
16 changed files with 967 additions and 502 deletions

View File

@@ -136,27 +136,8 @@ public class AbstractPlugin implements Plugin<Project> {
configureMaven();
}
/**
* Permit to create a Task instance of the type in the project
*
* @param name The name of the task
* @param type The type of the task that will be used to create an instance
* @return The created task object for the project
*/
public <T extends Task> T makeTask(String name, Class<T> type) {
return makeTask(project, name, type);
}
/**
* Permit to create a Task instance of the type in a project
*
* @param target The target project
* @param name The name of the task
* @param type The type of the task that will be used to create an instance
* @return The created task object for the specified project
*/
public static <T extends Task> T makeTask(Project target, String name, Class<T> type) {
return target.getTasks().create(name, type);
public Project getProject() {
return project;
}
/**