Package org.netbeans.gradle.project.model

Examples of org.netbeans.gradle.project.model.NbGradleMultiProjectDef$SerializedFormat


                Arrays.asList(sub1(), sub2()));
    }

    private static NbGradleMultiProjectDef createDummyProject() {
        NbGradleProjectTree root = rootProject();
        return new NbGradleMultiProjectDef(root, root);
    }
View Full Code Here


        taskDoesNotExistInProject(project, taskName, EmptyVarMap.INSTANCE);
    }

    @Test
    public void testIsTasksExistsIfRequired_MustExist_DoesExist() {
        NbGradleMultiProjectDef project = createDummyProject();

        taskExistsInProject(project, ":rootTask1");
        taskExistsInProject(project, ":rootTask2");

        taskExistsInProject(project, ":sub1:sub1Task1");
View Full Code Here

        taskExistsInProject(project, "sub2_2Task2");
    }

    @Test
    public void testIsTasksExistsIfRequired_MustExist_DoesntExist() {
        NbGradleMultiProjectDef project = createDummyProject();

        taskDoesNotExistInProject(project, ":sub1:rootTask1");
        taskDoesNotExistInProject(project, ":sub1:rootTask1");
        taskDoesNotExistInProject(project, "");
        taskDoesNotExistInProject(project, ":");
View Full Code Here

        taskDoesNotExistInProject(project, ":unknown:");
    }

    @Test
    public void testIsTasksExistsIfRequired_MustExist_WithVar() {
        NbGradleMultiProjectDef project = createDummyProject();

        taskExistsInProject(project, ":root${var1}", singletonVarMap("var1", "Task1"));
        taskExistsInProject(project, "${testVar}:sub1Task1", singletonVarMap("testVar", ":sub1"));
        taskExistsInProject(project, "${empty}:sub2:subsub2:sub2_2Task1", singletonVarMap("empty", ""));
    }
View Full Code Here

    public boolean isTasksExistsIfRequired(NbGradleProject project, Lookup actionContext) {
        return isTasksExistsIfRequired(project, project.getVarReplaceMap(actionContext));
    }

    public boolean isTasksExistsIfRequired(NbGradleProject project, TaskVariableMap varReplaceMap) {
        NbGradleMultiProjectDef gradleProject = project.getAvailableModel().getProjectDef();
        return isTasksExistsIfRequired(gradleProject, varReplaceMap);
    }
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.project.model.NbGradleMultiProjectDef$SerializedFormat

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.