Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for writeResources (0.27 sec)

  1. platforms/jvm/language-java/src/testFixtures/groovy/org/gradle/language/fixtures/HelperProcessorFixture.groovy

     * change scenarios. The message can also be provided with the -Amessage processor argument.
     */
    @CompileStatic
    class HelperProcessorFixture extends AnnotationProcessorFixture {
        String message = "greetings"
        boolean writeResources
        boolean withMultipleOriginatingElements
        String resourceLocation = StandardLocation.CLASS_OUTPUT.toString()
        private String suffix = ""
    
        HelperProcessorFixture() {
            super("Helper")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. platforms/jvm/language-jvm/src/testFixtures/groovy/org/gradle/integtests/fixtures/jvm/TestJvmComponent.groovy

                new JvmSourceFile("sub-dir", "two.txt", "Here is another resource")
        ]
    
        List<TestFile> writeResources(TestFile testFile) {
            return resources*.writeToDir(testFile)
        }
    
        String getSourceSetTypeName() {
            "JavaSourceSet"
        }
    
        def getSourceFileExtensions() {
            return [getLanguageName()]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIntegrationTest.groovy

                        }
                        hello(NativeLibrarySpec)
                    }
                }
            """
    
            and:
            helloWorldApp.executable.writeSources(file("src/main"))
            helloWorldApp.library.writeSources(file("src/hello"))
    
            when:
            run "installMainExecutable"
    
            then:
            sharedLibrary("build/libs/hello/shared/hello").assertExists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  4. platforms/jvm/language-jvm/src/testFixtures/groovy/org/gradle/api/tasks/compile/AbstractCompilerDaemonReuseIntegrationTest.groovy

            TestFile child = file("child").createDir()
            component.writeSources(file("src/main"))
            component.writeSources(child.file("src/main"))
            settingsFile << """
                include ":child"
            """
        }
    
        def withSingleProjectSources() {
            component.writeSources(file("src/main"))
            component.writeSources(file("src/main2"))
            buildFile << newSourceSet("main2")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/JUnitJupiterOptionsIntegrationTest.groovy

                            }
                        }
                    }
                }
            """
            writeSources(file("src/integrationTest/java"))
    
            when:
            succeeds("check")
            then:
            assertIntegrationTestsWereExecutedAndExcluded()
        }
    
        @Override
        void writeSources(TestFile sourcePath) {
            sourcePath.file("com/example/IncludedTest.java") << """
    package com.example;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryApiDependenciesIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "can choose alternative library implementation of api"() {
            given:
            def app = new CppHelloWorldApp()
            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("src/hello"))
    
            app.alternateLibrarySources*.writeToDir(file("src/hello2"))
    
            and:
            buildFile << """
    model {
        components {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetDependenciesIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "source dependency on source set of same type"() {
            def app = new CHelloWorldApp()
            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("src/library"))
    
            buildFile << """
    apply plugin: 'c'
    
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. testing/smoke-test/src/smokeTest/groovy/org/gradle/play/integtest/fixtures/external/AbstractPlayExternalContinuousBuildIntegrationTest.groovy

        protected PlayApp playApp
    
        def setup() {
            playApp = new BasicPlayApp(versionNumber)
            writeSources()
            buildTimeout = 90
        }
    
        TestFile getPlayRunBuildFile() {
            buildFile
        }
    
        def writeSources() {
            playApp.writeSources(testDirectory)
    
            playRunBuildFile << """
                runPlay {
                    httpPort = 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/TestNGOptionsIntegrationTest.groovy

                            }
                        }
                    }
                }
            """
            writeSources(file("src/integrationTest/java"))
    
            when:
            succeeds("check")
            then:
            assertIntegrationTestsWereExecutedAndExcluded()
        }
    
        @Override
        void writeSources(TestFile sourcePath) {
            sourcePath.file("com/example/IncludedTest.java") << """
    package com.example;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/JUnitOptionsIntegrationTest.groovy

                            }
                        }
                    }
                }
            """
            writeSources(file("src/integrationTest/java"))
    
            when:
            succeeds("check")
            then:
            assertIntegrationTestsWereExecutedAndExcluded()
        }
    
        @Override
        void writeSources(TestFile sourcePath) {
            sourcePath.file("com/example/Exclude.java") << """
    package com.example;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top