Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getSourceRoots (0.06 sec)

  1. impl/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java

            project.setFile(new File(basedir, "file"));
    
            assertEquals(0, project.getSourceRoots().size());
    
            project.addSourceRoot(new DefaultSourceRoot(
                    ProjectScope.MAIN, Language.JAVA_FAMILY, Path.of(basedir.getAbsolutePath(), "src/main/java")));
    
            assertEquals(1, project.getSourceRoots().size());
    
            // Try to remove a different directory
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 28 09:44:37 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleKotlinDslReferencePlugin.java

            kotlinSourceSet.register("kotlin_dsl", spec -> {
                spec.getDisplayName().set("DSL");
                spec.getSourceRoots().from(extension.getKotlinDslSource());
                spec.getSourceRoots().from(runtimeExtensions.flatMap(GradleKotlinDslRuntimeGeneratedSources::getGeneratedSources));
                spec.getClasspath().from(extension.getClasspath());
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed May 28 11:34:42 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

            artifactManager.setPath(artifact, path);
        }
    
        @Nonnull
        @Override
        public Collection<SourceRoot> getSourceRoots(@Nonnull Project project) {
            MavenProject prj = getMavenProject(requireNonNull(project, "project" + " cannot be null"));
            return prj.getSourceRoots();
        }
    
        @Nonnull
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 17 16:17:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java

         * List<SourceRoot> enabledRoots = project.getSourceRoots()
         *         .stream().filter(SourceRoot::enabled).toList();
         * }</pre>
         *
         * The iteration order is the order in which the sources are declared in the POM file.
         *
         * @param project the project for which to get the source roots
         */
        @Nonnull
        Collection<SourceRoot> getSourceRoots(@Nonnull Project project);
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jan 30 23:29:13 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleDocumentationExtension.java

        /**
         * Source code root folders. Java, Groovy and Kotlin public API sources, including
         * generated code.
         */
        public abstract ConfigurableFileCollection getSourceRoots();
    
        /**
         * Kotlin DSL source code to be documented. This should be the "public" Kotlin APIs,
         * including generated code.
         */
        public abstract ConfigurableFileCollection getKotlinDslSource();
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Aug 20 14:11:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleBuildDocumentationPlugin.java

            sourcesPath.setCanBeConsumed(false);
            sourcesPath.setCanBeResolved(true);
            sourcesPath.extendsFrom(runtimeClasspath);
    
            extension.getClasspath().from(runtimeClasspath);
            extension.getSourceRoots().from(sourcesPath.getIncoming().artifactView(v -> v.lenient(true)).getFiles());
            extension.getDocumentedSource().from(sourcesPath.getIncoming().artifactView(v -> v.lenient(true)).getFiles().getAsFileTree().matching(f -> {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Jul 02 12:28:02 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java

        // ----------------------------------------------------------------------
    
        /**
         * Adds the given source if not already present.
         *
         * @param source the source to add
         *
         * @see #getSourceRoots()
         *
         * @since 4.0.0
         */
        public void addSourceRoot(SourceRoot source) {
            sources.add(source);
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Aug 29 12:47:20 UTC 2025
    - 67K bytes
    - Viewed (0)
Back to top