Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for writeResources (0.23 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/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/IsolatingIncrementalAnnotationProcessingIntegrationTest.groovy

        private static HelperProcessorFixture writingResourcesTo(String location) {
            def helperProcessorFixture = new HelperProcessorFixture()
            helperProcessorFixture.writeResources = true
            helperProcessorFixture.resourceLocation = location
            return helperProcessorFixture
        }
    
        private HelperProcessorFixture helperProcessor
    
        @Override
        def setup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryDependenciesIntegrationTest.groovy

                }
    """
        }
    
        def "produces reasonable error message when referenced library #label"() {
            given:
            def app = new CppHelloWorldApp()
            app.executable.writeSources(file("exe/src/main"))
            app.library.writeSources(file("lib/src/hello"))
    
            and:
            createDirs("exe", "other")
            settingsFile.text = "include ':exe', ':other'"
            buildFile << """
    project(":exe") {
        model {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. 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)
  6. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSoftwareModelSingleProjectIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "create visual studio solution for build with an executable and library"() {
            when:
            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("src/hello"))
            buildFile << """
    model {
        components {
            hello(NativeLibrarySpec)
            main(NativeExecutableSpec) {
                sources {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 35.7K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryConfigurationIntegrationTest.groovy

        apply plugin: 'cpp'
        model {
            components {
                main(NativeExecutableSpec)
            }
        }
    }
            """
    
            and:
            helloWorldApp.writeSources(file("a/src/main"))
            helloWorldApp.writeSources(file("b/src/main"))
    
            file("b/src/main/cpp/broken.cpp") << """
        A broken C++ file
    """
    
            expect:
            fails "mainExecutable"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/GeneratedSourcesIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "generator task produces sources for dependent source set"() {
            given:
            def app = new CHelloWorldApp()
            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("src/input"))
            degenerateInputSources()
    
            when:
            buildFile << """
    apply plugin: 'c'
    
    model {
        components {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top