Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for sourceFilePath (0.2 sec)

  1. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/fixtures/StaleOutputJavaProject.groovy

        }
    
        private TestFile writeJavaSourceFile(String className) {
            String sourceFilePath = "src/main/java/${className}.java"
            sourceFilePath = prependRootDirName(sourceFilePath)
            def sourceFile = testDir.file(sourceFilePath)
            sourceFile << "public class $className {}"
            sourceFile
        }
    
        private TestFile determineClassFile(File sourceFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt

         * @return the source file and it's source root
         */
        fun sourceFileAndSourceRootFor(sourceFilePath: String): Pair<File, File> =
            sourceRoots.asSequence()
                .map { it.resolve(sourceFilePath) to it }
                .firstOrNull { it.first.isFile }
                ?: throw IllegalStateException("Source file '$sourceFilePath' not found, searched in source roots:\n  - ${sourceRoots.joinToString("\n  - ")}")
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 20 16:37:41 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/plugin/PluginBuilder.groovy

        TestFile file(String path) {
            projectDir.file(path)
        }
    
        TestFile groovy(String path) {
            file("src/main/groovy/${sourceFilePath(path)}")
        }
    
        TestFile java(String path) {
            file("src/main/java/${sourceFilePath(path)}")
        }
    
        private String sourceFilePath(String path) {
            packageName ? "${packageName.replaceAll("\\.", "/")}/$path" : path
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 11:17:11 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepository.kt

                sources.sourceFileAndSourceRootFor(declaringClass.sourceFilePath).let { (sourceFile, sourceRoot) ->
                    if (declaringClass.isKotlin) ApiSourceFile.Kotlin(sourceFile, sourceRoot)
                    else ApiSourceFile.Java(sourceFile, sourceRoot)
                }
            }
    
        private
        val JApiClass.sourceFilePath: String
            get() = if (isKotlin) kotlinSourceFilePath else javaSourceFilePath
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 3.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/PluginClasspathLeakIntegrationTest.groovy

        }
    
        private static void addPluginSource(TestFile pluginProjectDir, String code) {
            def packageName = "org.gradle.test"
            def sourceFilePath = "${packageName.replaceAll("\\.", "/")}/${"TestPlugin"}.groovy"
            pluginProjectDir.file("src/main/groovy/${sourceFilePath}") << """
                ${packageName ? "package $packageName" : ""}
    
                class TestPlugin implements $Plugin.name<$Project.name> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 09:47:33 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top