Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for writeToDir (0.19 sec)

  1. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativePreCompiledHeaderIntegrationTest.groovy

            given:
            new SourceFile(app.sourceType, "hello.h", app.libraryHeader.content).writeToDir(file("src/hello"))
            app.librarySources.each { it.writeToDir(file("src/hello")) }
            new SourceFile(app.sourceType, "common.h", app.commonHeader.content).writeToDir(file("src/hello"))
    
            when:
            buildFile << preCompiledHeaderComponent()
            buildFile << """
                model {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/GeneratedSourcesIntegrationTest.groovy

            // Write sources to src/main, headers to src/input
            def app = new CHelloWorldApp()
            app.executable.writeSources(file("src/main"))
            app.library.sourceFiles*.writeToDir(file("src/main"))
            app.library.headerFiles*.writeToDir(file("src/input"))
            degenerateInputSources()
    
            when:
            buildFile << """
        apply plugin: 'c'
    
    model {
        components { comp ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryApiDependenciesIntegrationTest.groovy

            given:
            def app = new CppHelloWorldApp()
            app.executable.writeSources(file("src/main"))
    
            app.library.headerFiles*.writeToDir(file("src/helloApi"))
            app.library.sourceFiles*.writeToDir(file("src/hello"))
    
            and:
            buildFile << """
    model {
        components { comp ->
            helloApi(NativeLibrarySpec)
            hello(NativeLibrarySpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/SourceFile.java

        }
    
        public String getName() {
            return name;
        }
    
        public String getContent() {
            return content;
        }
    
        public TestFile writeToDir(TestFile base) {
            return writeToDir(base, name);
        }
    
        public TestFile writeToDir(TestFile base, String name) {
            TestFile file = base.file(path, name);
            writeToFile(file);
            return file;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/assembler/AssemblyLanguageIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "can manually define Assembler source sets"() {
            given:
            helloWorldApp.mainSource.writeToDir(file("src/main"))
            helloWorldApp.getLibraryHeader().writeToDir(file("src/main"))
            helloWorldApp.librarySources[0].writeToDir(file("src/main"))
            file("src/main/sum-sources/sum.s") << helloWorldApp.librarySources[1].content
    
            and:
            buildFile << """
    model {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithLibraryUsingLibraryHelloWorldApp.groovy

            getExecutable().writeSources(mainSourceDir)
            getLibrary().writeSources(librarySourceDir)
            getGreetingsHeader().writeToDir(greetingsLibrarySourceDir)
            for (SourceFile sourceFile : greetingsSources) {
                sourceFile.writeToDir(greetingsLibrarySourceDir)
            }
        }
    
    
        TestNativeComponent getGreetingsLibrary() {
            return new TestNativeComponent() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppToolChainChangesIntegrationTest.groovy

                rootProject.name = 'test'
                include 'library', 'app'
            """
            app.mainSource.writeToDir(file("app/src/main"))
            app.libraryHeader.writeToDir(file("library/src/main"))
            app.commonHeader.writeToDir(file("library/src/main"))
            app.librarySources.each {
                it.writeToDir(file("library/src/main"))
            }
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. platforms/jvm/language-jvm/src/testFixtures/groovy/org/gradle/integtests/fixtures/jvm/TestJvmComponent.groovy

            return sources*.writeToDir(sourceDir.file(sourceSetName))
        }
    
        List<JvmSourceFile> resources = [
                new JvmSourceFile("", "one.txt", "Here is a resource"),
                new JvmSourceFile("sub-dir", "two.txt", "Here is another resource")
        ]
    
        List<TestFile> writeResources(TestFile testFile) {
            return resources*.writeToDir(testFile)
        }
    
        String getSourceSetTypeName() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/TestNativeComponent.groovy

        }
    
        abstract List<SourceFile> getSourceFiles()
    
        abstract List<SourceFile> getHeaderFiles()
    
        void writeSources(TestFile sourceDir) {
            for (SourceFile srcFile : files) {
                srcFile.writeToDir(sourceDir)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetDependenciesIntegrationTest.groovy

        def "source dependency on source set of headers"() {
            def app = new CHelloWorldApp()
            app.executable.writeSources(file("src/main"))
            app.library.sourceFiles*.writeToDir(file("src/main"))
            app.library.headerFiles*.writeToDir(file("src/library"))
    
            buildFile << """
    apply plugin: 'c'
    
    model {
        components { comp ->
            library(NativeLibrarySpec)
            main(NativeExecutableSpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top