Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for sourceRoots (0.06 sec)

  1. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/KotlinSourceParser.kt

            }
    
        private
        fun <T : Any?> withParsedKotlinSource(sourceRoots: List<File>, block: (List<KtFile>) -> T) =
            Disposer.newDisposable().use {
                parseKotlinFiles(sourceRoots, emptyList()).let(block)
            }
    
        private
        fun Disposable.parseKotlinFiles(sourceRoots: List<File>, compilationClasspath: List<File>): List<KtFile> {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Sep 16 08:22:33 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/project/ConnectedResource.java

        private final SourceRoot originalSourceRoot;
        private final ProjectScope scope;
        private final MavenProject project;
    
        ConnectedResource(SourceRoot sourceRoot, ProjectScope scope, MavenProject project) {
            super(org.apache.maven.api.model.Resource.newBuilder()
                    .directory(sourceRoot.directory().toString())
                    .includes(sourceRoot.includes())
                    .excludes(sourceRoot.excludes())
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 07 13:11:07 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepositoryLifecycle.kt

        object Params {
            const val sourceRoots = "sourceRoots"
            const val sourceCompilationClasspath = "sourceCompilationClasspath"
        }
    
        @Suppress("unchecked_cast")
        override fun execute(context: ViolationCheckContext) {
            (context.userData as MutableMap<String, Any?>)[REPOSITORY_CONTEXT_KEY] = BinaryCompatibilityRepository.openRepositoryFor(
                param(Params.sourceRoots),
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/BinaryCompatibilityHelper.groovy

                        addSetupRule(BinaryCompatibilityRepositorySetupRule, [
                            (BinaryCompatibilityRepositorySetupRule.Params.sourceRoots): sourceRoots.collect { it.absolutePath } as Set,
                            (BinaryCompatibilityRepositorySetupRule.Params.sourceCompilationClasspath): newClasspath.collect { it.absolutePath } as Set
                        ])
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 30 10:14:25 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepository.kt

            member.jApiClass.let { declaringClass ->
                sources.sourceFileAndSourceRootFor(declaringClass.sourceFilePath).let { (sourceFile, sourceRoot) ->
                    if (declaringClass.isKotlin) ApiSourceFile.Kotlin(sourceFile, sourceRoot)
                    else ApiSourceFile.Java(sourceFile, sourceRoot)
                }
            }
    
        private
        val JApiClass.sourceFilePath: String
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Dec 24 14:15:15 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt

         */
        fun sourceFileAndSourceRootFor(sourceFilePath: String): Pair<File, File> =
            sourceRoots.asSequence()
                .map { it.resolve(sourceFilePath) to it }
                .firstOrNull { it.first.isFile }
                ?: error("Source file '$sourceFilePath' not found, searched in source roots:\n  - ${sourceRoots.joinToString("\n  - ")}")
    
        private
        val KtFile.normalizedPath: String?
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Mon Apr 28 14:56:52 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

                            version = "2.0"
                        }
                    """
                )
                withDirectory("v1/src/main").v1()
                withDirectory("v2/src/main").v2()
                val sourceRoots = if (File(withDirectory("v2/src/main"), "java").exists()) {
                    "v2/src/main/java"
                } else {
                    "v2/src/main/kotlin"
                }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 30 10:14:25 UTC 2025
    - 18K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java

     * {@linkplain org.apache.maven.api.model.Model Maven project descriptor}.
     * For each property, the default value is either empty or documented in the project descriptor.
     */
    public interface SourceRoot {
        /**
         * {@return the root directory where the sources are stored}
         * The path is relative to the <abbr>POM</abbr> file.
         *
         * <h4>Default implementation</h4>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 07 13:11:07 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

        }
    
        @Nonnull
        @Override
        public Collection<SourceRoot> getSourceRoots(@Nonnull Project project) {
            MavenProject prj = getMavenProject(requireNonNull(project, "project" + " cannot be null"));
            return prj.getSourceRoots();
        }
    
        @Nonnull
        @Override
        public Stream<SourceRoot> getEnabledSourceRoots(@Nonnull Project project, ProjectScope scope, Language language) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 17 16:17:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java

    public class SourceRootTest implements SourceRoot {
        private ProjectScope scope;
    
        private Language language;
    
        private String moduleName;
    
        @Override
        public ProjectScope scope() {
            return (scope != null) ? scope : SourceRoot.super.scope();
        }
    
        @Override
        public Language language() {
            return (language != null) ? language : SourceRoot.super.language();
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Oct 26 17:22:14 UTC 2025
    - 2.9K bytes
    - Viewed (0)
Back to top