Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for sourcePath (0.29 sec)

  1. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/JavaCompilerArgumentsBuilder.java

            Collection<File> sourcepath = compileOptions.getSourcepath();
            boolean emptySourcePath = sourcepath == null || sourcepath.isEmpty();
    
            if (compilerArgs.contains("--module-source-path")) {
                if (!emptySourcePath) {
                    LOGGER.warn("You specified both --module-source-path and a sourcepath. These options are mutually exclusive. Ignoring sourcepath.");
                }
                return;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:08 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/JavaCompilerArgumentsBuilderTest.groovy

            expect:
            builder.build() == defaultOptions
        }
    
        def "generates -sourcepath option"() {
            def file1 = new File("/lib/lib1.jar")
            def file2 = new File("/lib/lib2.jar")
            def fc = [file1, file2]
            spec.compileOptions.sourcepath = fc
            def expected = ["-g", "-sourcepath", GUtil.asPath(fc), "-proc:none", USE_UNSHARED_COMPILER_TABLE_OPTION, "-classpath", ""]
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:36 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. testing/smoke-test/src/smokeTest/resources/org/gradle/smoketests/android-kotlin-example-kotlin-dsl/app/build.gradle.kts

                lateinit var sourceName: String
                lateinit var sourcePath: String
                if (productFlavorName.isNotEmpty()) {
                    sourceName = buildTypeName
                    sourcePath = sourceName
                } else {
                    sourceName = "${productFlavorName}${buildTypeName.capitalize()}"
                    sourcePath = "${productFlavorName}/${buildTypeName}"
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/internal/IsolatedProjectsSafeKotlinDslScriptsModelBuilder.kt

            val classPath = base.nonProjectScriptPaths.bin + it.classPath
            val gradleKotlinDslJar = classPath.filter(::isGradleKotlinDslJar)
            val sourcePath = gradleKotlinDslJar + base.nonProjectScriptPaths.src + it.sourcePath
            buildOutputModel(it.scriptFile, classPath, sourcePath, base.implicitImports, base.classPathModeExceptions)
        }
    }
    
    
    private
    fun buildScriptModelsInHierarchy(
        rootProject: ProjectInternal,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 11:06:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. testing/smoke-test/src/smokeTest/resources/org/gradle/smoketests/android-kotlin-example/app/build.gradle

            buildTypes.each { buildTypeName ->
                def sourceName, sourcePath
                if (!productFlavorName) {
                    sourceName = sourcePath = "${buildTypeName}"
                } else {
                    sourceName = "${productFlavorName}${buildTypeName.capitalize()}"
                    sourcePath = "${productFlavorName}/${buildTypeName}"
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. build-logic/kotlin-dsl/src/main/kotlin/gradlebuild/kotlindsl/generator/codegen/FunctionSinceRepository.kt

        private
        fun javaProjectBuilderFor(loader: ClassLoader, sourcePath: Set<File>): JavaProjectBuilder =
            JavaProjectBuilder(OrderedClassLibraryBuilder().apply {
                appendClassLoader(loader)
            }).apply {
                sourcePath.filter { it.extension == "java" }
                    .forEach { sourceFile ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DelegatingCopySpecInternal.java

        }
    
        @Override
        public CopySpec from(Object... sourcePaths) {
            return getDelegateCopySpec().from(sourcePaths);
        }
    
        @Override
        public CopySpec from(Object sourcePath, final Closure c) {
            return getDelegateCopySpec().from(sourcePath, new ClosureBackedAction<>(c));
        }
    
        @Override
        public CopySpec from(Object sourcePath, Action<? super CopySpec> configureAction) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/eclipse/EclipseClasspathFixture.groovy

            }
    
            void assertHasSource(File jar) {
                assert entry.@sourcepath == jar.path.replace(File.separator, '/')
            }
    
            String getSourcePath() {
                entry.@sourcepath
            }
    
            void assertHasSource(String jar) {
                assert entry.@sourcepath == jar
            }
    
            void assertHasCachedSource(String group, String module, String version) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 01:27:55 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/DaemonJavaCompilerIntegrationTest.groovy

                    }
                }
            """
    
            expect:
            succeeds "compileJava"
        }
    
        def "handles -sourcepath being specified"() {
            goodCode()
            buildFile << """
                tasks.withType(JavaCompile) {
                    options.sourcepath = project.layout.files()
                }
            """
    
            expect:
            succeeds "compileJava"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileIntegrationTest.groovy

        }
    
        def "ignores empty directories within the file collection of the sourcepath compiler option"() {
            given:
            def sourcePath = 'src/main/ignoredJava'
            buildFile << """
                plugins { id 'java' }
                compileJava.options.sourcepath = files('$sourcePath')
            """
    
            file("${sourcePath}/org/gradle/test/MyOptionalTest.java").text = """
                package org.gradle.test;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 39.6K bytes
    - Viewed (0)
Back to top