Adds the given dependencies to this task. See here for a description of the types of objects which can be used as task dependencies.
79808182838485868788
} }); 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"); } }
121122123124125126127128129130131
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")); }
123124125126127128129130131132133
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() {
5556575859606162
// 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 ); } }
481482483484485486487488489490491
data.getAssembleTask().dependsOn(variantData.assembleTask); } // flavor combo if (assembleTask != null) { assembleTask.dependsOn(variantData.assembleTask); } } } if (testedVariantData != null) {
4546474849505152535455
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);
4647484950515253545556
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");
4950515253545556575859
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); }
8687888990919293949596
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");
919293949596979899100101
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() {