Package org.netbeans.gradle.project.tasks.CachingVariableMap

Examples of org.netbeans.gradle.project.tasks.CachingVariableMap.VariableValue


    }

    private static VariableValue getCapitalized(TaskVariableMap variables, TaskVariable taskVariable) {
        String value = variables.tryGetValueForVariable(taskVariable);
        return value != null
                ? new VariableValue(StringUtils.capitalizeFirstCharacter(value))
                : VariableValue.NULL_VALUE;
    }
View Full Code Here


    private static void defineVariables(Map<TaskVariable, VariableDef<JavaExtension>> varMap) {
        addVariable(varMap, SOURCE_SET_NAME, new ValueGetter<JavaExtension>() {
            @Override
            public VariableValue getValue(TaskVariableMap variables, JavaExtension project, Lookup actionContext) {
                return new VariableValue(getSourceSetName(project, actionContext));
            }
        });

        addVariable(varMap, SOURCE_SET_NAME_CAPITAL, new ValueGetter<JavaExtension>() {
            @Override
            public VariableValue getValue(TaskVariableMap variables, JavaExtension project, Lookup actionContext) {
                return getCapitalized(variables, SOURCE_SET_NAME);
            }
        });

        addVariable(varMap, TEST_TASK_NAME, new ValueGetter<JavaExtension>() {
            @Override
            public VariableValue getValue(TaskVariableMap variables, JavaExtension project, Lookup actionContext) {
                return new VariableValue(getTestTaskName(variables, project, actionContext));
            }
        });

        addVariable(varMap, TEST_TASK_NAME_CAPITAL, new ValueGetter<JavaExtension>() {
            @Override
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.project.tasks.CachingVariableMap.VariableValue

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.