Package net.minecraftforge.gradle.tasks

Examples of net.minecraftforge.gradle.tasks.ProcessSrcJarTask$ContextProvider


            remapTask.setDoesCache(false);
            remapTask.setNoJavadocs();
            remapTask.dependsOn("decompile");
        }

        ProcessSrcJarTask task5 = makeTask("fmlPatchJar", ProcessSrcJarTask.class);
        {
            task5.setInJar(delayedFile(DevConstants.ZIP_DECOMP_FML));
            task5.setOutJar(delayedFile(DevConstants.ZIP_PATCHED_FML));
            task5.addStage("fml", delayedFile(DevConstants.FML_PATCH_DIR));
            task5.setDoesCache(false);
            task5.setMaxFuzz(2);
            task5.dependsOn("decompile");
        }
       
        remapTask = makeTask("remapDirtyJar", RemapSourcesTask.class);
        {
            remapTask.setInJar(delayedFile(DevConstants.ZIP_PATCHED_FML));
View Full Code Here


        // add source patching task
        {
            DelayedFile decompOut = delayedDirtyFile(null, CLASSIFIER_DECOMPILED, "jar");
            DelayedFile processed = delayedDirtyFile(null, CLASSIFIER_PATCHED, "jar");

            ProcessSrcJarTask patch = makeTask("processSources", ProcessSrcJarTask.class);
            patch.dependsOn("decompile");
            patch.setInJar(decompOut);
            patch.setOutJar(processed);
            configurePatching(patch);

            RemapSourcesTask remap = (RemapSourcesTask) project.getTasks().getByName("remapJar");
            remap.setInJar(processed);
            remap.dependsOn(patch);
View Full Code Here

            task3.setPatch(delayedFile(MCP_PATCH_DIR));
            task3.setAstyleConfig(delayedFile(ASTYLE_CFG));
            task3.dependsOn("downloadMcpTools", "deobfuscateJar");
        }
       
        ProcessSrcJarTask task4 = makeTask("fmlPatchJar", ProcessSrcJarTask.class);
        {
            task4.setInJar(delayedFile(ZIP_DECOMP_FORGE));
            task4.setOutJar(delayedFile(ZIP_FMLED_FORGE));
            task4.addStage("fml", delayedFile(FML_PATCH_DIR), delayedFile(FML_SOURCES), delayedFile(FML_RESOURCES), delayedFile("{MAPPINGS_DIR}/patches/Start.java"));
            task4.setDoesCache(false);
            task4.setMaxFuzz(2);
            task4.dependsOn("decompile", "compressDeobfData", "createVersionPropertiesFML");
        }

        RemapSourcesTask task6 = makeTask("remapSourcesJar", RemapSourcesTask.class);
        {
            task6.setInJar(delayedFile(ZIP_INJECT_MCPC));
            task6.setOutJar(delayedFile(ZIP_RENAMED_MCPC));
            task6.setMethodsCsv(delayedFile(METHODS_CSV));
            task6.setFieldsCsv(delayedFile(FIELDS_CSV));
            task6.setParamsCsv(delayedFile(PARAMS_CSV));
            task6.setDoesCache(true);
            task6.setDoesJavadocs(false);
            task6.dependsOn("fmlPatchJar");
        }
       
        Zip task5 = makeTask("forgeInjectJar", Zip.class);
        {
            task5.from(delayedFileTree(FORGE_SOURCES));
            task5.from(delayedFileTree(FORGE_RESOURCES));
            task5.from(delayedFileTree(BUKKIT_SOURCES));
            task5.from(delayedFileTree(BUKKIT_RESOURCES));
            task5.from(delayedZipTree(ZIP_RENAMED_MCPC));

            // see ZIP_FINJECT_MCPC
            task5.setArchiveName("minecraft_forgeinjected.zip");
            task5.setDestinationDir(delayedFile("{BUILD_DIR}/mcpcTmp").call());

            task5.dependsOn("remapSourcesJar");
        }

        task4 = makeTask("forgePatchJar", ProcessSrcJarTask.class);
        {
            task4.setInJar(delayedFile(ZIP_FINJECT_MCPC));
            task4.setOutJar(delayedFile(ZIP_FORGED_MCPC));
            task4.addStage("forge", delayedFile(FORGE_PATCH_DIR));
            task4.setDoesCache(true);
            task4.setMaxFuzz(2);
            task4.dependsOn("forgeInjectJar");
        }
        
        task4 = makeTask("mcpcPatchJar", ProcessSrcJarTask.class);
        {
            task4.setInJar(delayedFile(ZIP_FORGED_MCPC));
            task4.setOutJar(delayedFile(ZIP_PATCHED_MCPC));
            task4.addStage("MCPC", delayedFile(MCPC_PATCH_DIR));
            task4.setDoesCache(false);
            task4.setMaxFuzz(2);
            task4.dependsOn("forgePatchJar");
        }
    }
View Full Code Here

            task3.setPatch(delayedFile(MCP_PATCH_DIR));
            task3.setAstyleConfig(delayedFile(ASTYLE_CFG));
            task3.dependsOn("downloadMcpTools", "deobfuscateJar");
        }

        ProcessSrcJarTask task4 = makeTask("fmlPatchJar", ProcessSrcJarTask.class);
        {
            task4.setInJar(delayedFile(ZIP_DECOMP_FORGE));
            task4.setOutJar(delayedFile(ZIP_FMLED_FORGE));
            task4.addStage("fml", delayedFile(FML_PATCH_DIR), delayedFile(FML_SOURCES), delayedFile(FML_RESOURCES), delayedFile("{MAPPINGS_DIR}/patches/Start.java"));
            task4.setDoesCache(false);
            task4.setMaxFuzz(2);
            task4.dependsOn("decompile", "compressDeobfData", "createVersionPropertiesFML");
        }
       
        RemapSourcesTask remapTask = makeTask("remapCleanJar", RemapSourcesTask.class);
        {
            remapTask.setInJar(delayedFile(ZIP_FMLED_FORGE));
            remapTask.setOutJar(delayedFile(REMAPPED_CLEAN));
            remapTask.setMethodsCsv(delayedFile(DevConstants.METHODS_CSV));
            remapTask.setFieldsCsv(delayedFile(DevConstants.FIELDS_CSV));
            remapTask.setParamsCsv(delayedFile(DevConstants.PARAMS_CSV));
            remapTask.setDoesCache(false);
            remapTask.setNoJavadocs();
            remapTask.dependsOn("fmlPatchJar");
        }

        task4 = makeTask("forgePatchJar", ProcessSrcJarTask.class);
        {
            task4.setInJar(delayedFile(ZIP_FMLED_FORGE));
            task4.setOutJar(delayedFile(ZIP_PATCHED_FORGE));
            task4.addStage("forge", delayedFile(FORGE_PATCH_DIR));
            task4.setDoesCache(false);
            task4.setMaxFuzz(2);
            task4.dependsOn("fmlPatchJar");
        }
       
        remapTask = makeTask("remapSourcesJar", RemapSourcesTask.class);
        {
            remapTask.setInJar(delayedFile(ZIP_PATCHED_FORGE));
View Full Code Here

TOP

Related Classes of net.minecraftforge.gradle.tasks.ProcessSrcJarTask$ContextProvider

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.