Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 388 for sourceFiles (0.43 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppSourceElement.java

    import org.gradle.integtests.fixtures.SourceFile;
    import org.gradle.util.internal.CollectionUtils;
    
    import java.util.ArrayList;
    import java.util.List;
    
    public abstract class CppSourceElement extends SourceElement {
        public abstract SourceElement getHeaders();
    
        public abstract SourceElement getSources();
    
        @Override
        public List<SourceFile> getFiles() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SimpleJavaContinuousIntegrationTest.groovy

            when:
            def sourceFile = file("src/main/java/Thing.java") << "class Thing {} /* broken compile "
    
            then:
            fails("build")
    
            when:
            sourceFile << "*/"
    
            then:
            buildTriggeredAndSucceeded()
        }
    
        def "can run tests"() {
            when:
            def sourceFile = file("src/main/java/Thing.java") << "class Thing {}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalCompileIntegrationTest.groovy

            when:
            final newFile = file("src/main/${app.sourceType}/changed.${app.sourceExtension}")
            newFile << sourceFile.text
            sourceFile.delete()
    
            and:
            run "mainExecutable"
    
            then:
            outputs.recompiledFile newFile
            objectFileFor(sourceFile).assertDoesNotExist()
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppMain.groovy

    import org.gradle.integtests.fixtures.SourceFile
    
    class CppMain extends SourceFileElement implements AppElement {
        final GreeterElement greeter
        final SumElement sum
    
        CppMain(GreeterElement greeter, SumElement sum) {
            this.greeter = greeter
            this.sum = sum
        }
    
        final SourceFile sourceFile = new SourceFile("cpp", "main.cpp", """
        #include <iostream>
        #include "sum.h"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppMainWithOptionalFeature.groovy

    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class CppMainWithOptionalFeature extends SourceFileElement implements AppElement {
        final GreeterElement greeter
    
        CppMainWithOptionalFeature(GreeterElement greeter) {
            this.greeter = greeter
        }
    
        final SourceFile sourceFile = new SourceFile("cpp", "main.cpp", """
        #include <iostream>
        #include "greeter.h"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/mutator/AbstractGroovySourceFileMutator.groovy

    import org.gradle.profiler.mutations.AbstractFileChangeMutator
    
    abstract class AbstractGroovySourceFileMutator extends AbstractFileChangeMutator {
        AbstractGroovySourceFileMutator(File sourceFile) {
            super(sourceFile)
            if (!sourceFile.getName().endsWith(".groovy")) {
                throw new IllegalArgumentException("Can only modify Groovy source files")
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/tasks/SwiftUnexportMainSymbolIntegrationTest.groovy

        protected SourceFileElement alternateFile = new SourceFileElement() {
            final SourceFile sourceFile = new SourceFile("swift", "main.swift", 'print("goodbye world!")')
        }
    
        @Override
        protected SourceFileElement getOtherFile() {
            return new SourceFileElement() {
                final SourceFile sourceFile = new SourceFile("swift", "other.swift", 'class Other {}')
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/MixedObjectiveCHelloWorldApp.groovy

                                linker.args "-lgnustep-base", "-lobjc"
                            }
                        }
                    }
                }
            """
        }
    
        @Override
        SourceFile getMainSource() {
            return sourceFile("objc", "main.m", """
                // Simple hello world app
                #import "hello.h"
    
                int main (int argc, const char * argv[]) {
                    doGreeting();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateCBaseNamesTestApp.groovy

     */
    
    package org.gradle.language.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    import org.gradle.nativeplatform.fixtures.app.TestNativeComponent
    
    class DuplicateCBaseNamesTestApp extends TestNativeComponent {
    
        def plugins = ["c"]
    
        @Override
        List<SourceFile> getSourceFiles() {
            [sourceFile("c", "main.c", """
                #include <stdio.h>
                #include "foo.h"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateWindowsResourcesBaseNamesTestApp.groovy

        std::cout << foo2;
    }
    """),
            sourceFile("rc/dir1", "resources.rc", """
    #include "hello.h"
    
    STRINGTABLE
    {
        IDS_FOO1, "foo1"
    }
    """),
            sourceFile("rc/dir2", "resources.rc", """
    #include "hello.h"
    
    STRINGTABLE
    {
        IDS_FOO2, "foo2"
    }
    """)]
    
        }
    
        @Override
        List<SourceFile> getHeaderFiles() {
            return [sourceFile("headers", "hello.h", """
    #define IDS_FOO1    111
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top