Package org.netbeans.gradle.project.properties

Examples of org.netbeans.gradle.project.properties.PredefinedTask


        Set<String> knownBuiltInCommands = snapshot.getKnownBuiltInCommands();
        List<PredefinedTask> tasks = new ArrayList<>(knownBuiltInCommands.size());
        for (String command: knownBuiltInCommands) {
            PropertySource<PredefinedTask> taskProperty = snapshot.tryGetBuiltInTask(command);
            if (taskProperty != null && !taskProperty.isDefault()) {
                PredefinedTask task = taskProperty.getValue();
                if (task != null) {
                    tasks.add(task);
                }
            }
        }
View Full Code Here


                    jvmArgs.add(arg);
                }
            }
        }

        return new PredefinedTask(displayName, names, args, jvmArgs, nonBlocking);
    }
View Full Code Here

            List<PredefinedTask.Name> names = new ArrayList<>(rawTaskNames.length);
            for (String name: rawTaskNames) {
                names.add(new PredefinedTask.Name(name, tasksMustExist));
            }

            return new PredefinedTask(
                    displayName,
                    names,
                    Arrays.asList(actionPanel.getArguments()),
                    Arrays.asList(actionPanel.getJvmArguments()),
                    actionPanel.isNonBlocking());
View Full Code Here

            String displayName = panel.getDisplayName();
            if (displayName.isEmpty()) {
                return null;
            }

            PredefinedTask newTaskDef = createTaskDef(actionPanel, displayName, true);
            if (!newTaskDef.isTasksExistsIfRequired(project, Lookup.EMPTY)) {
                newTaskDef = createTaskDef(actionPanel, displayName, false);
            }

            MutableProperty<List<PredefinedTask>> commonTasks = project.getProperties().getCommonTasks();
View Full Code Here

                MutableProperty<PredefinedTask> builtInTask = properties.tryGetBuiltInTask(command);
                if (builtInTask == null) {
                    return null;
                }

                final PredefinedTask task = builtInTask.getValue();
                if (task == null) {
                    LOGGER.log(Level.WARNING, "Property returns null for built-in command: {0}", command);
                    return null;
                }

                CustomCommandActions customActions = getCommandActions(appliedConfig, command);
                if (customActions == null) {
                    customActions = CustomCommandActions.OTHER;
                }

                customActionsRef.set(customActions);

                String displayName = tryGetDisplayNameOfCommand(command);
                if (displayName == null) {
                    displayName = task.getDisplayName();
                }

                return GradleTaskDef.createFromTemplate(project,
                        task.toCommandTemplate(displayName),
                        customActions,
                        appliedContext).create();
            }
        };
View Full Code Here

            List<PredefinedTask.Name> names = new ArrayList<>(sourceNames.size());
            for (String name: sourceNames) {
                names.add(new PredefinedTask.Name(name, false));
            }

            return new PredefinedTask(
                    taskDef.getCommandName(),
                    names,
                    taskDef.getArguments(),
                    taskDef.getJvmArguments(),
                    false);
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.project.properties.PredefinedTask

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.