Package org.netbeans.gradle.model.java

Examples of org.netbeans.gradle.model.java.JavaCompatibilityModel


    }

    private static NbJavaModule createModule(String name) {
        String fullName = ":apps:" + name;
        GenericProjectProperties properties = NbGradleProjectTreeTest.createProperties(name, fullName);
        JavaCompatibilityModel compatibility = new JavaCompatibilityModel("1.6", "1.7");
        List<JavaSourceSet> sources = Arrays.asList(createSources("main"), createSources("test"));
        List<NbListedDir> listedDirs = Arrays.asList(
                new NbListedDir("my-listed-dir", new File("listed-dir")));
        JavaTestModel testModel = JavaTestModel.getDefaulTestModel(properties.getProjectDir());
View Full Code Here


    public static NbJavaModel createEmptyModel(File projectDir, Lookup otherModels) {
        String name = projectDir.getName();
        String level = AbstractProjectProperties.getSourceLevelFromPlatform(JavaPlatform.getDefault());

        GenericProjectProperties properties = new GenericProjectProperties(name, name, projectDir);
        JavaCompatibilityModel compatibilityModel = new JavaCompatibilityModel(level, level);

        NbJavaModule result = new NbJavaModule(
                properties,
                compatibilityModel,
                Collections.<JavaSourceSet>emptyList(),
View Full Code Here

        String scriptDisplayName = module.getName();
        if (scriptDisplayName == null) scriptDisplayName = "";

        GenericProjectProperties properties = new GenericProjectProperties(scriptDisplayName, uniqueName, moduleDir);
        JavaCompatibilityModel compatibilityModel = new JavaCompatibilityModel(sourceLevel, targetLevel);

        List<NbListedDir> listedDirs = lookupListedDirs(sourceSets);
        JavaTestModel testModel = JavaTestModel.getDefaulTestModel(moduleDir);

        return new NbJavaModule(properties, compatibilityModel, sourceSets, listedDirs, testModel);
View Full Code Here

        Map<File, Lookup> allProjects = retrievedModels.getEvaluatedProjectsModel();

        List<NbJavaModule> result = new ArrayList<>(allProjects.size());
        for (Lookup projectInfo: allProjects.values()) {
            JavaCompatibilityModel versions = projectInfo.lookup(JavaCompatibilityModel.class);
            JavaSourcesModel sourcesModel = projectInfo.lookup(JavaSourcesModel.class);
            if (versions == null || sourcesModel == null) {
                continue;
            }
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.model.java.JavaCompatibilityModel

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.