Package org.gradle.api

Examples of org.gradle.api.Task.dependsOn()


            }
        });


        Task projectReportTask = project.getTasks().add(PROJECT_REPORT);
        projectReportTask.dependsOn(TASK_REPORT, PROPERTY_REPORT, DEPENDENCY_REPORT);
        projectReportTask.setDescription("Generates a report about your project.");
        projectReportTask.setGroup("reporting");
    }
}
View Full Code Here


        Task dependsOnTask = createTask(project, "somename");
        Task task = createTask(project, TEST_TASK_NAME);
        project.getTasks().add("path1");
        project.getTasks().add("path2");

        task.dependsOn(Project.PATH_SEPARATOR + "path1");
        assertThat(task, dependsOn("path1"));
        task.dependsOn("path2", dependsOnTask);
        assertThat(task, dependsOn("path1", "path2", "somename"));
    }
View Full Code Here

        project.getTasks().add("path1");
        project.getTasks().add("path2");

        task.dependsOn(Project.PATH_SEPARATOR + "path1");
        assertThat(task, dependsOn("path1"));
        task.dependsOn("path2", dependsOnTask);
        assertThat(task, dependsOn("path1", "path2", "somename"));
    }

    @Test
    public void testToString() {
View Full Code Here

    // connect up the task in the task dependency graph
    Task classesTask = project.getTasks().getByName( JavaPlugin.CLASSES_TASK_NAME );
    enhanceTask.dependsOn( classesTask );

    Task jarTask = project.getTasks().getByName( HAPPENS_AFTER_ENHANCE_TASK_NAME );
    jarTask.dependsOn( enhanceTask );
  }
}
View Full Code Here

                    data.getAssembleTask().dependsOn(variantData.assembleTask);
                }

                // flavor combo
                if (assembleTask != null) {
                    assembleTask.dependsOn(variantData.assembleTask);
                }
            }
        }

        if (testedVariantData != null) {
View Full Code Here

        Task xmlTask = addCreateLaunch4jXMLTask(project, pluginExtension);
       
        Task copyTask = addCopyToLibTask(project, pluginExtension);
       
        Task runTask = addRunLauch4jTask(project, pluginExtension);
        runTask.dependsOn(copyTask);
        runTask.dependsOn(xmlTask);
       
        Task l4jTask = addLaunch4jTask(project, pluginExtension);
        l4jTask.dependsOn(runTask);
View Full Code Here

       
        Task copyTask = addCopyToLibTask(project, pluginExtension);
       
        Task runTask = addRunLauch4jTask(project, pluginExtension);
        runTask.dependsOn(copyTask);
        runTask.dependsOn(xmlTask);
       
        Task l4jTask = addLaunch4jTask(project, pluginExtension);
        l4jTask.dependsOn(runTask);

        Launch4jPluginExtension ext = (Launch4jPluginExtension)project.getExtensions().getByName("launch4j");
View Full Code Here

        Task runTask = addRunLauch4jTask(project, pluginExtension);
        runTask.dependsOn(copyTask);
        runTask.dependsOn(xmlTask);
       
        Task l4jTask = addLaunch4jTask(project, pluginExtension);
        l4jTask.dependsOn(runTask);

        Launch4jPluginExtension ext = (Launch4jPluginExtension)project.getExtensions().getByName("launch4j");
        ext.initExtensionDefaults(project);
    }
View Full Code Here

        createSourceCopyTasks();
        createPackageTasks();

        // the master setup task.
        Task task = makeTask("setupForge", DefaultTask.class);
        task.dependsOn("extractForgeSources", "generateProjects", "eclipse", "copyAssets");
        task.setGroup("Forge");

        // the master task.
        task = makeTask("buildPackages");
        task.dependsOn("launch4j", "createChangelog", "packageUniversal", "packageInstaller", "packageUserDev", "packageSrc", "genJavadocs");
View Full Code Here

        task.dependsOn("extractForgeSources", "generateProjects", "eclipse", "copyAssets");
        task.setGroup("Forge");

        // the master task.
        task = makeTask("buildPackages");
        task.dependsOn("launch4j", "createChangelog", "packageUniversal", "packageInstaller", "packageUserDev", "packageSrc", "genJavadocs");
        task.setGroup("Forge");
    }

    protected void createJarProcessTasks()
    {
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.