Package org.gradle.tooling.model.idea

Examples of org.gradle.tooling.model.idea.IdeaModule


                if (nextProjectsToSkip == null) {
                    nextProjectsToSkip = new HashSet<>(projectsToSkip);
                    nextProjectsToSkip.add(uniqueProjectName);
                }

                IdeaModule moduleDep = ((IdeaModuleDependency)dependency).getDependencyModule();

                IdeaDependencyBuilder subDependencies = new IdeaDependencyBuilder();
                fetchAllDependencies(moduleDep, subDependencies, nextProjectsToSkip, cache);

                File mainBuildDir = getDefaultMainClasses(moduleDep);
View Full Code Here


        return new NbJavaModule(properties, compatibilityModel, sourceSets, listedDirs, testModel);
    }

    public static Map<File, NbJavaModel> parseFromIdeaModel(File projectDir, IdeaProject ideaModel) throws IOException {
        IdeaModule mainModule = tryFindMainModule(projectDir, ideaModel);
        if (mainModule == null) {
            throw new IOException("Unable to find the main project in the model.");
        }

        DomainObjectSet<? extends IdeaModule> modules = ideaModel.getModules();
View Full Code Here

        ExceptionHelper.checkNotNullArgument(project, "project");
        ExceptionHelper.checkNotNullArgument(ideaProject, "ideaProject");
        ExceptionHelper.checkNotNullArgument(otherModels, "otherModels");

        File projectDir = project.getProjectDirectoryAsFile();
        IdeaModule mainModule = IdeaJavaModelUtils.tryFindMainModule(projectDir, ideaProject);
        if (mainModule == null) {
            throw new IOException("Failed to find idea module for project: " + project.getDisplayName());
        }

        IdeaModule rootModule = tryFindRootModule(ideaProject);
        if (rootModule == null) {
            throw new IOException("Failed to find root module for project: " + project.getDisplayName());
        }

        NbGradleProjectTree rootTree = tryCreateProjectTreeFromIdea(rootModule);
        if (rootTree == null) {
            throw new IOException("Failed to find root tree for project: " + rootModule.getName());
        }

        String rootPath = rootModule.getGradleProject().getPath();
        for (IdeaModule otherModule: ideaProject.getModules()) {
            // This comparison is not strictly necessary but there is no reason
            // to reparse the main project.
            if (otherModule != mainModule) {
                if (rootPath.equals(otherModule.getGradleProject().getPath())) {
View Full Code Here

TOP

Related Classes of org.gradle.tooling.model.idea.IdeaModule

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.