Package org.netbeans.gradle.project.api.task

Examples of org.netbeans.gradle.project.api.task.GradleCommandTemplate


    }

    @Override
    public MutableProperty<PredefinedTask> tryGetBuiltInTask(String command) {
        ProfileDef profile = project.getCurrentProfile().getProfileDef();
        GradleCommandTemplate commandTemplate
                = project.getMergedCommandQuery().tryGetDefaultGradleCommand(profile, command);

        final PredefinedTask task = commandTemplate != null
                ? templateToPredefined(command, commandTemplate)
                : null;
View Full Code Here


        List<String> arguments = Arrays.asList("arg1", "", "arg2");
        List<String> jvmArguments = Arrays.asList("jvmarg1", "", "jvmarg2");
        boolean nonBlocking = false;

        PredefinedTask task = new PredefinedTask(displayName, taskNames, arguments, jvmArguments, nonBlocking);
        GradleCommandTemplate commandTemplate = task.toCommandTemplate();

        assertEquals(Arrays.asList("task1", "", "task2"), commandTemplate.getTasks());
        assertEquals(arguments, commandTemplate.getArguments());
        assertEquals(jvmArguments, commandTemplate.getJvmArguments());
        assertTrue(commandTemplate.isBlocking());
    }
View Full Code Here

                    doExecute = true;
                }
            } while (!okToClose);

            if (doExecute) {
                final GradleCommandTemplate commandTemplate = panel.tryGetGradleCommand(displayName);
                if (commandTemplate != null) {
                    executeCommandTemplate(project, commandTemplate);
                }
            }
        }
View Full Code Here

                dlg.setVisible(true);
                if (dlgDescriptor.getValue() != DialogDescriptor.OK_OPTION) {
                    return;
                }

                GradleCommandTemplate template
                        = panel.tryGetGradleCommand(lastSource.getCommandName());
                AsyncGradleTask newTask = new AsyncGradleTask(
                        task.getProject(),
                        adjust(task.getTaskDefFactroy(), template),
                        task.getListener());
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.project.api.task.GradleCommandTemplate

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.