Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toSourceFiles (0.12 sec)

  1. platforms/jvm/java-compiler-plugin/src/test/groovy/com/gradle/internal/compiler/java/listeners/ConstantsCollectorTest.groovy

                "class C { static final int CONSTANT = B.CONSTANT; }",
                "class D { static final int CONSTANT = C.CONSTANT; }",
                "class E { }",
            ]
            List<File> sourceFiles = toSourceFiles(classes) + getConstants("int", "1")
    
            when:
            compiler.compile(sourceFiles)
    
            then:
            accessibleDependentToConstants["A"] == ["Constant1"] as Set
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:06:26 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  2. platforms/jvm/java-compiler-plugin/src/test/groovy/com/gradle/internal/compiler/java/AbstractCompilerPluginTest.groovy

        @TempDir
        File temporaryFolder
    
        protected File sourceFolder
    
        def setup() {
            sourceFolder = Files.createTempDirectory(temporaryFolder.toPath(), null).toFile()
        }
    
        List<File> toSourceFiles(List<String> bodies) {
            return bodies.collect { toSourceFile(it) }.flatten()
        }
    
        List<File> toSourceFile(String body) {
            def packageGroup = (body =~ /(?s).*?(?:package) (\w+).*/)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:06:26 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top