Package org.gradle.api.internal.tasks

Examples of org.gradle.api.internal.tasks.TaskContainerInternal.create()


            }
        });

        tasks.addPlaceholderAction(COMPONENTS_TASK, new Runnable() {
            public void run() {
                tasks.create(COMPONENTS_TASK, ComponentReport.class, new Action<ComponentReport>() {
                    public void execute(ComponentReport task) {
                        task.setDescription("Displays the components produced by " + project + ". [incubating]");
                        task.setGroup(HELP_GROUP);
                        task.setImpliesSubProjects(true);
                    }
View Full Code Here


    public void apply(final ProjectInternal project) {
        final TaskContainerInternal tasks = project.getTasks();

        tasks.addPlaceholderAction(ProjectInternal.HELP_TASK, new Runnable() {
            public void run() {
                tasks.create(ProjectInternal.HELP_TASK, Help.class, new Action<Help>() {
                    public void execute(Help task) {
                        task.setDescription("Displays a help message.");
                        task.setGroup(HELP_GROUP);
                        task.setImpliesSubProjects(true);
                    }
View Full Code Here

            }
        });

        tasks.addPlaceholderAction(ProjectInternal.PROJECTS_TASK, new Runnable() {
            public void run() {
                tasks.create(ProjectInternal.PROJECTS_TASK, ProjectReportTask.class, new Action<ProjectReportTask>() {
                    public void execute(ProjectReportTask task) {
                        task.setDescription("Displays the sub-projects of " + project + ".");
                        task.setGroup(HELP_GROUP);
                        task.setImpliesSubProjects(true);
                    }
View Full Code Here

            }
        });

        tasks.addPlaceholderAction(ProjectInternal.TASKS_TASK, new Runnable() {
            public void run() {
                tasks.create(ProjectInternal.TASKS_TASK, TaskReportTask.class, new Action<TaskReportTask>() {
                    public void execute(TaskReportTask task) {
                        String description;
                        if (project.getChildProjects().isEmpty()) {
                            description = "Displays the tasks runnable from " + project + ".";
                        } else {
View Full Code Here

            }
        });

        tasks.addPlaceholderAction(PROPERTIES_TASK, new Runnable() {
            public void run() {
                tasks.create(PROPERTIES_TASK, PropertyReportTask.class, new Action<PropertyReportTask>() {
                    public void execute(PropertyReportTask task) {
                        task.setDescription("Displays the properties of " + project + ".");
                        task.setGroup(HELP_GROUP);
                        task.setImpliesSubProjects(true);
                    }
View Full Code Here

            }
        });

        tasks.addPlaceholderAction(DEPENDENCY_INSIGHT_TASK, new Runnable() {
            public void run() {
                tasks.create(DEPENDENCY_INSIGHT_TASK, DependencyInsightReportTask.class, new Action<DependencyInsightReportTask>() {
                    public void execute(final DependencyInsightReportTask task) {
                        task.setDescription("Displays the insight into a specific dependency in " + project + ".");
                        task.setGroup(HELP_GROUP);
                        task.setImpliesSubProjects(true);
View Full Code Here

            }
        });

        tasks.addPlaceholderAction(DEPENDENCIES_TASK, new Runnable() {
            public void run() {
                tasks.create(DEPENDENCIES_TASK, DependencyReportTask.class, new Action<DependencyReportTask>() {
                    public void execute(DependencyReportTask task) {
                        task.setDescription("Displays all dependencies declared in " + project + ".");
                        task.setGroup(HELP_GROUP);
                        task.setImpliesSubProjects(true);
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.