Examples of doLast()


Examples of net.minecraftforge.gradle.tasks.abstractutil.DelayedJar.doLast()

                    mani.getAttributes().put("TweakClass", delayedString("{FML_TWEAK_CLASS}").call());
                    mani.getAttributes().put("Class-Path", getServerClassPath(delayedFile(JSON_REL).call()));
                    return null;
                }
            });
            uni.doLast(new Action<Task>()
            {
                @Override
                public void execute(Task arg0)
                {
                    try
View Full Code Here

Examples of net.minecraftforge.gradle.tasks.abstractutil.DownloadTask.doLast()

        {
            getAssetsIndex.setUrl(delayedString(Constants.ASSETS_INDEX_URL));
            getAssetsIndex.setOutput(delayedFile(Constants.ASSETS + "/indexes/{ASSET_INDEX}.json"));
            getAssetsIndex.setDoesCache(false);

            getAssetsIndex.doLast(new Action<Task>() {
                public void execute(Task task)
                {
                    try
                    {
                        parseAssetIndex();
View Full Code Here

Examples of net.minecraftforge.gradle.tasks.abstractutil.ExtractTask.doLast()

        // special userDev stuff
        ExtractTask extractUserDev = makeTask("extractUserDev", ExtractTask.class);
        extractUserDev.into(delayedFile("{USER_DEV}"));
        extractUserDev.setDoesCache(true);
        extractUserDev.doLast(new Action<Task>()
        {
            @Override
            public void execute(Task arg0)
            {
                readAndApplyJson(getDevJson().call(), CONFIG_DEPS, CONFIG_NATIVES, arg0.getLogger());
View Full Code Here

Examples of net.minecraftforge.gradle.tasks.user.EtagDownloadTask.doLast()

            // make sure it happens sometime during the build.
            project.getTasks().getByName("setupCIWorkspace").dependsOn(task);
            project.getTasks().getByName("setupDevWorkspace").dependsOn(task);
            project.getTasks().getByName("setupDecompWorkspace").dependsOn(task);
           
            task.doLast(new Action() {

                @Override
                public void execute(Object arg0)
                {
                    EtagDownloadTask task = (EtagDownloadTask) arg0;
View Full Code Here

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

    @Test
    public void testNotifiesTaskListenerWhenTaskFails() {
        final TaskExecutionListener listener = context.mock(TaskExecutionListener.class);
        final RuntimeException failure = new RuntimeException();
        final Task a = createTask("a");
        a.doLast(new Action<Task>() {
            public void execute(Task task) {
                throw failure;
            }
        });
View Full Code Here

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

        // idea run configs

        IdeaModel ideaConv = (IdeaModel) project.getExtensions().getByName("idea");

        Task task = project.getTasks().getByName("genIntellijRuns");
        task.doLast(new Action<Task>() {
            @Override
            public void execute(Task task)
            {
                try
                {
View Full Code Here

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

        else
        {
            final String extraCommand = command;

            Task task = project.getTasks().getByName("extractL4J");
            task.doLast(new Action<Task>() {

                @Override
                public void execute(Task task)
                {
                    File f = new File(extraCommand);
View Full Code Here

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

                }
            }
        });

        Task task = makeTask("afterEclipseImport", DefaultTask.class);
        task.doLast(new Action<Object>() {
            public void execute(Object obj)
            {
                try
                {
                    Node root = new XmlParser().parseText(Files.toString(project.file(".classpath"), Charset.defaultCharset()));
View Full Code Here

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

        ideaConv.getModule().getExcludeDirs().addAll(project.files(".gradle", "build", ".idea").getFiles());
        ideaConv.getModule().setDownloadJavadoc(true);
        ideaConv.getModule().setDownloadSources(true);

        Task task = makeTask("genIntellijRuns", DefaultTask.class);
        task.doLast(new Action<Task>() {
            @Override
            public void execute(Task task)
            {
                try
                {
View Full Code Here

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

                task.getInputs().properties(inputProperties);
            }
            if (outputs != null) {
                task.getOutputs().files(outputs);
            }
            task.doLast(new org.gradle.api.Action<Object>() {
                public void execute(Object o) {
                    for (TestFile file : create) {
                        file.createFile();
                    }
                }
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.