Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 63 for writeResources (0.19 sec)

  1. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeDependentComponentsIntegrationSpec.groovy

                                lib library: 'hello'
                            }
                        }
                    }
                }
            '''.stripIndent()
    
            helloWorldApp.writeSources(file("src/main"), file("src/hello"), file("src/greetings"))
        }
    
        def "creates #taskPrefix dependents tasks"() {
            when:
            succeeds 'tasks'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/MultipleNativeToolChainIntegrationTest.groovy

        def helloWorld = new CppCompilerDetectingTestApp()
    
        def setup() {
            buildFile << """
    plugins { id 'cpp' }
    """
    
            helloWorld.writeSources(file("src/main"))
        }
    
        @Requires(UnitTestPreconditions.CanInstallExecutable)
        @RequiresInstalledToolChain(ToolChainRequirement.GCC)
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeBinariesIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "assemble task constructs all buildable binaries"() {
            given:
            new CHelloWorldApp().writeSources(file("src/main"))
    
            and:
            buildFile << """
    import org.gradle.nativeplatform.platform.internal.NativePlatforms
    
    apply plugin: 'c'
    
    model {
        platforms {
            unknown {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  4. testing/smoke-test/src/smokeTest/groovy/org/gradle/play/integtest/fixtures/external/PlayApp.groovy

            URL resource = getClass().getResource("$baseDir/$path/$name");
            File file = new File(resource.toURI())
            return new SourceFile(path, name, file.text);
        }
    
        void writeSources(TestFile sourceDir) {
            gradleBuild.writeToDir(sourceDir)
            for (SourceFile srcFile : allFiles) {
                srcFile.writeToDir(sourceDir)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryFlavorsIntegrationTest.groovy

                }
            }
            main(NativeExecutableSpec) {
                binaries.all {
                    lib library: 'hello'
                }
            }
        }
    }
    """
    
            helloWorldApp.writeSources(file("src/main"), file("src/hello"), file("src/greetings"))
        }
    
        @ToBeFixedForConfigurationCache
        def "can configure components for a single flavor"() {
            given:
            buildFile << """
    model {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/rc/WindowsResourcesIntegrationTest.groovy

                            windowsSdkDir "${TextUtil.normaliseFileSeparators(sdk.getBaseDir().absolutePath)}"
                        }
                    }
                }
            """
    
            and:
            helloWorldApp.writeSources(file("src/main"))
    
            when:
            run "mainExecutable"
    
            then:
            def mainExecutable = executable("build/exe/main/main")
            mainExecutable.assertExists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/integTest/groovy/org/gradle/language/rc/WindowsResourcesIncrementalBuildIntegrationTest.groovy

            buildFile << helloWorldApp.extraConfiguration
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
            """
    
            helloWorldApp.writeSources(file("src/main"))
            unusedHeaderFile = file("src/main/headers/unused.h") << """
        #define DUMMY_HEADER_FILE
    """
    
            run "mainExecutable"
    
            mainExe = executable("build/exe/main/main")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  8. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioFileCustomizationIntegrationTest.groovy

        def app = new CppHelloWorldApp()
    
        def setup() {
            settingsFile << """
                rootProject.name = 'app'
            """
            app.writeSources(file("src/main"))
            buildFile << """
        apply plugin: 'cpp'
        apply plugin: 'visual-studio'
    
        model {
            platforms {
                win32 {
                    architecture "i386"
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalCompileIntegrationTest.groovy

        def "incremental compile is not effected by other compile tasks"() {
            given:
            buildFile << """
    model {
        components {
            other(NativeExecutableSpec)
        }
    }
    """
            app.writeSources(file("src/other"))
            app.commonHeader.writeToDir(file("src/other"))
    
            and:
            outputs.snapshot { run "mainExecutable" }
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativePreCompiledHeaderIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "can set a precompiled header on multiple components" () {
            given:
            writeStandardSourceFiles()
            app.library.writeSources(file("src/hello2"))
    
            when:
            buildFile << preCompiledHeaderComponent()
            buildFile << """
                model {
                    components {
                        hello2(NativeLibrarySpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
Back to top