Package org.netbeans.gradle.model.java

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


        Map<File, File> result = CollectionUtils.newHashMap(allProjects.size());
        for (Lookup projectInfo: allProjects.values()) {
            JarOutputsModel jarsModel = projectInfo.lookup(JarOutputsModel.class);
            if (jarsModel != null) {
                JavaSourcesModel sources = projectInfo.lookup(JavaSourcesModel.class);
                if (sources == null) {
                    GenericProjectProperties properties = projectInfo.lookup(GenericProjectProperties.class);
                    String projectName = properties != null
                            ? properties.getProjectFullName()
                            : "???";
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;
            }

            if (sourcesModel.getSourceSets().isEmpty()) {
                LOGGER.log(Level.INFO,
                        "Disabling the Java extension because there are no sources: {0}",
                        retrievedModels.getMainProjectDir());
                continue;
            }
View Full Code Here

TOP

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

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.