Examples of dependsOn()


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

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

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

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

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

        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

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

       
        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

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

        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

Examples of org.gradle.api.internal.TaskInternal.dependsOn()

        final TaskInternal task = AbstractTask.injectIntoNewInstance(root, name, new Callable<TaskInternal>() {
            public TaskInternal call() throws Exception {
                return new DefaultTask();
            }
        });
        task.dependsOn((Object[]) dependsOn);
        task.doFirst(new Action<Task>() {
            public void execute(Task task) {
                executedTasks.add(task);
            }
        });
View Full Code Here

Examples of org.gradle.api.internal.TaskInternal.dependsOn()

        Map<String, Object> actualArgs = new HashMap<String, Object>(args);
        boolean autoWire = remove(actualArgs, DEPENDENCY_AUTO_WIRE);

        TaskInternal task = taskFactory.createTask(project, actualArgs);
        if (autoWire) {
            task.dependsOn(task.getInputs().getFiles());
        }
        return task;
    }

    private boolean remove(Map<String, ?> args, String key) {
View Full Code Here

Examples of org.gradle.api.internal.TaskInternal.dependsOn()

        Boolean generateSubclass = Boolean.valueOf(actualArgs.get(GENERATE_SUBCLASS).toString());
        TaskInternal task = createTaskObject(project, type, name, generateSubclass);

        Object dependsOnTasks = actualArgs.get(Task.TASK_DEPENDS_ON);
        if (dependsOnTasks != null) {
            task.dependsOn(dependsOnTasks);
        }
        Object description = actualArgs.get(Task.TASK_DESCRIPTION);
        if (description != null) {
            task.setDescription(description.toString());
        }
View Full Code Here

Examples of org.gradle.api.tasks.Copy.dependsOn()

        Copy copy = makeTask("copyStart", Copy.class);
        {
            copy.from(delayedFile("{MAPPINGS_DIR}/patches"));
            copy.include("Start.java");
            copy.into(delayedFile(DevConstants.ECLIPSE_CLEAN_SRC));
            copy.dependsOn("extractMcResources");
        }

        task = makeTask("extractMcSource", ExtractTask.class);
        {
            task.include(JAVA_FILES);
View Full Code Here

Examples of org.gradle.api.tasks.JavaExec.dependsOn()

        JavaExec exec = (JavaExec) project.getTasks().getByName("runClient");
        {
            exec.jvmArgs("-Djava.library.path=" + delayedFile(NATIVES_DIR).call().getAbsolutePath());
            exec.classpath(project.getConfigurations().getByName("runtime"));
            exec.classpath(jarTask.getArchivePath());
            exec.dependsOn(jarTask);
        }
       
        exec = (JavaExec) project.getTasks().getByName("runServer");
        {
            exec.classpath(project.getConfigurations().getByName("runtime"));
View Full Code Here

Examples of org.gradle.api.tasks.Upload.dependsOn()

    }

    private void configureInstall(Project project) {
        Upload installUpload = project.getTasks().add(INSTALL_TASK_NAME, Upload.class);
        Configuration configuration = project.getConfigurations().getByName(Dependency.ARCHIVES_CONFIGURATION);
        installUpload.dependsOn(configuration.getBuildArtifacts());
        installUpload.setConfiguration(configuration);
        installUpload.getRepositories().mavenInstaller(WrapUtil.toMap("name", RepositoryHandler.DEFAULT_MAVEN_INSTALLER_NAME));
        installUpload.setDescription("Does a maven install of the archives artifacts into the local .m2 cache.");
    }
}
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.