Package org.gradle.api.tasks.bundling

Examples of org.gradle.api.tasks.bundling.Zip.from()


            src.from(delayedFile(DevConstants.FML_LICENSE));
            src.from(delayedFile(DevConstants.FML_CREDITS));
            src.from(delayedFile("{FML_DIR}/install"), new CopyInto(null, "!*.gradle"));
            src.from(delayedFile("{FML_DIR}/install"), (new CopyInto(null, "*.gradle")).addExpand("version", delayedString("{MC_VERSION}-{VERSION}")).addExpand("name", "fml"));
            src.from(delayedFile("{FML_DIR}/gradlew"));
            src.from(delayedFile("{FML_DIR}/gradlew.bat"));
            src.from(delayedFile("{FML_DIR}/gradle/wrapper"), new CopyInto("gradle/wrapper"));
            src.rename(".+?\\.gradle", "build.gradle");
            src.dependsOn("createChangelog");
            src.setExtension("zip");
        }
View Full Code Here


            src.from(delayedFile(DevConstants.FML_CREDITS));
            src.from(delayedFile("{FML_DIR}/install"), new CopyInto(null, "!*.gradle"));
            src.from(delayedFile("{FML_DIR}/install"), (new CopyInto(null, "*.gradle")).addExpand("version", delayedString("{MC_VERSION}-{VERSION}")).addExpand("name", "fml"));
            src.from(delayedFile("{FML_DIR}/gradlew"));
            src.from(delayedFile("{FML_DIR}/gradlew.bat"));
            src.from(delayedFile("{FML_DIR}/gradle/wrapper"), new CopyInto("gradle/wrapper"));
            src.rename(".+?\\.gradle", "build.gradle");
            src.dependsOn("createChangelog");
            src.setExtension("zip");
        }
        project.getArtifacts().add("archives", src);
View Full Code Here

            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));
View Full Code Here

        }
       
        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
View Full Code Here

       
        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");
View Full Code Here

        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());
View Full Code Here

        {
            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());
View Full Code Here

        }

        Zip inst = makeTask("packageInstaller", Zip.class);
        {
            inst.setClassifier("installer");
            inst.from(new Closure<File>(project) {
                public File call()
                {
                    return uni.getArchivePath();
                }
            });
View Full Code Here

                public File call()
                {
                    return uni.getArchivePath();
                }
            });
            inst.from(delayedFile(INSTALL_PROFILE));
            inst.from(delayedFile(CHANGELOG));
            inst.from(delayedFile(FML_LICENSE));
            inst.from(delayedFile(FML_CREDITS));
            inst.from(delayedFile(FORGE_LICENSE));
            inst.from(delayedFile(FORGE_CREDITS));
View Full Code Here

                {
                    return uni.getArchivePath();
                }
            });
            inst.from(delayedFile(INSTALL_PROFILE));
            inst.from(delayedFile(CHANGELOG));
            inst.from(delayedFile(FML_LICENSE));
            inst.from(delayedFile(FML_CREDITS));
            inst.from(delayedFile(FORGE_LICENSE));
            inst.from(delayedFile(FORGE_CREDITS));
            inst.from(delayedFile(PAULSCODE_LISCENCE1));
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.