Package net.minecraftforge.gradle.tasks.dev

Examples of net.minecraftforge.gradle.tasks.dev.SubprojectTask


        makeTask("generateProjects").dependsOn("generateProjectClean", "generateProjectForge");
    }

    private void createEclipseTasks()
    {
        SubprojectTask task = makeTask("eclipseClean", SubprojectTask.class);
        {
            task.setBuildFile(delayedFile(ECLIPSE_CLEAN + "/build.gradle"));
            task.setTasks("eclipse");
            task.dependsOn("extractMcSource", "generateProjects");
        }

        task = makeTask("eclipseForge", SubprojectTask.class);
        {
            task.setBuildFile(delayedFile(ECLIPSE_FORGE + "/build.gradle"));
            task.setTasks("eclipse");
            task.dependsOn("extractForgeSources", "generateProjects");
        }

        makeTask("eclipse").dependsOn("eclipseClean", "eclipseForge");
    }
View Full Code Here


            jdSource.setMethodsCsv(delayedFile(METHODS_CSV));
            jdSource.setFieldsCsv(delayedFile(FIELDS_CSV));
        }

        final File javadoc_temp = project.file(delayedFile("{BUILD_DIR}/tmp/javadoc"));
        final SubprojectTask javadocJar = makeTask("genJavadocs", SubprojectTask.class);
        {
            javadocJar.dependsOn("replaceJavadocs");
            javadocJar.setBuildFile(delayedFile(ECLIPSE_FORGE + "/build.gradle"));
            javadocJar.setTasks("javadoc");
            javadocJar.setConfigureTask(new Action<Task>() {
                public void execute(Task obj)
                {
                    Javadoc task = (Javadoc)obj;
                    task.setSource(project.fileTree(javadocSource));
                    task.setDestinationDir(javadoc_temp);
                }
            });
            javadocJar.dependsOn("generateProjects", "extractForgeSources");
        }

        final Zip javadoc = makeTask("packageJavadoc", Zip.class);
        {
            javadoc.from(javadoc_temp);
View Full Code Here

    @Override
    public void afterEvaluate()
    {
        super.afterEvaluate();
       
        SubprojectTask task = (SubprojectTask) project.getTasks().getByName("eclipseClean");
        task.configureProject(getExtension().getSubprojects());
        task.configureProject(getExtension().getCleanProject());
       
        task = (SubprojectTask) project.getTasks().getByName("eclipseForge");
        task.configureProject(getExtension().getSubprojects());
        task.configureProject(getExtension().getCleanProject());
       
        task = (SubprojectTask) project.getTasks().getByName("genJavadocs");
        task.configureProject(getExtension().getSubprojects());
        task.configureProject(getExtension().getCleanProject());
    }
View Full Code Here

        makeTask("generateProjects").dependsOn("generateProjectClean", "generateProjectFML");
    }

    private void createEclipseTasks()
    {
        SubprojectTask task = makeTask("eclipseClean", SubprojectTask.class);
        {
            task.setBuildFile(delayedFile(DevConstants.ECLIPSE_CLEAN + "/build.gradle"));
            task.setTasks("eclipse");
            task.dependsOn("extractMcSource", "generateProjects");
        }

        task = makeTask("eclipseFML", SubprojectTask.class);
        {
            task.setBuildFile(delayedFile(DevConstants.ECLIPSE_FML + "/build.gradle"));
            task.setTasks("eclipse");
            task.dependsOn("extractFmlSources", "generateProjects");
        }

        makeTask("eclipse").dependsOn("eclipseClean", "eclipseFML");
    }
View Full Code Here

        {
            classZip.from(delayedZipTree(DevConstants.BINPATCH_TMP), new CopyInto("", "**/*.class"));
            classZip.setArchiveName("binaries.jar");
        }

        final SubprojectTask javadocJar = makeTask("genJavadocs", SubprojectTask.class);
        {
            javadocJar.setBuildFile(delayedFile(DevConstants.ECLIPSE_FML + "/build.gradle"));
            javadocJar.setTasks("jar");
            javadocJar.setConfigureTask(new Action<Task>() {
                public void execute(Task obj)
                {
                    Jar task = (Jar) obj;
                    File file = delayedFile(DevConstants.JAVADOC_TMP).call();
                    task.setDestinationDir(file.getParentFile());
                    task.setArchiveName(file.getName());
                }
            });
            javadocJar.dependsOn("generateProjects", "extractFmlSources");
        }

        ExtractS2SRangeTask range = makeTask("userDevExtractRange", ExtractS2SRangeTask.class);
        {
            range.setLibsFromProject(delayedFile(DevConstants.ECLIPSE_FML + "/build.gradle"), "compile", true);
View Full Code Here

    @Override
    public void afterEvaluate()
    {
        super.afterEvaluate();
       
        SubprojectTask task = (SubprojectTask) project.getTasks().getByName("eclipseClean");
        task.configureProject(getExtension().getSubprojects());
        task.configureProject(getExtension().getCleanProject());
       
        task = (SubprojectTask) project.getTasks().getByName("eclipseFML");
        task.configureProject(getExtension().getSubprojects());
        task.configureProject(getExtension().getCleanProject());
       
        task = (SubprojectTask) project.getTasks().getByName("genJavadocs");
        task.configureProject(getExtension().getSubprojects());
        task.configureProject(getExtension().getCleanProject());
    }
View Full Code Here

        makeTask("generateProjects").dependsOn("generateProjectClean", "generateProjectMcpc");
    }
   
    private void createEclipseTasks()
    {
        SubprojectTask task = makeTask("eclipseClean", SubprojectTask.class);
        {
            task.setBuildFile(delayedFile(ECLIPSE_CLEAN + "/build.gradle"));
            task.setTasks("eclipse");
            task.dependsOn("extractCleanSource", "generateProjects");
        }

        task = makeTask("eclipseMcpc", SubprojectTask.class);
        {
            task.setBuildFile(delayedFile(ECLIPSE_MCPC + "/build.gradle"));
            task.setTasks("eclipse");
            task.dependsOn("extractMcpcSources", "generateProjects");
        }

        makeTask("eclipse").dependsOn("eclipseClean", "eclipseMcpc");
    }
View Full Code Here

            jdSource.setMethodsCsv(delayedFile(METHODS_CSV));
            jdSource.setFieldsCsv(delayedFile(FIELDS_CSV));
        }

        final File javadoc_temp = project.file(delayedFile("{BUILD_DIR}/tmp/javadoc"));
        final SubprojectTask javadocJar = makeTask("genJavadocs", SubprojectTask.class);
        {
            javadocJar.dependsOn("replaceJavadocs");
            javadocJar.setBuildFile(delayedFile(ECLIPSE_MCPC + "/build.gradle"));
            javadocJar.setTasks("javadoc");
            javadocJar.setConfigureTask(new Action<Task>() {
                public void execute(Task obj)
                {
                    Javadoc task = (Javadoc)obj;
                    task.setSource(project.fileTree(javadocSource));
                    task.setDestinationDir(javadoc_temp);
View Full Code Here

    @Override
    public void afterEvaluate()
    {
        super.afterEvaluate();
       
        SubprojectTask task = (SubprojectTask) project.getTasks().getByName("eclipseClean");
        task.configureProject(getExtension().getSubprojects());
        task.configureProject(getExtension().getCleanProject());
       
        task = (SubprojectTask) project.getTasks().getByName("eclipseMcpc");
        task.configureProject(getExtension().getSubprojects());
        task.configureProject(getExtension().getCleanProject());
       
        task = (SubprojectTask) project.getTasks().getByName("genJavadocs");
        task.configureProject(getExtension().getSubprojects());
        task.configureProject(getExtension().getCleanProject());
    }
View Full Code Here

TOP

Related Classes of net.minecraftforge.gradle.tasks.dev.SubprojectTask

Copyright © 2018 www.massapicom. 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.