Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 74 for sourceFile (0.16 sec)

  1. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParser.java

        @Override
        public IncludeDirectives parseSource(File sourceFile) {
            try (Reader fileReader = new FileReader(sourceFile)) {
                return parseSource(fileReader);
            } catch (Exception e) {
                throw new GradleException(String.format("Could not extract includes from source file %s.", sourceFile), e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftIncrementalCompileIntegrationTest.groovy

            buildFile << """
                apply plugin: 'swift-application'
             """
    
            succeeds("compileDebugSwift")
            def newFile = file("src/main/swift/NewFile.swift")
            newFile.text = app.sum.sourceFile.content
    
            expect:
            fails("compileDebugSwift")
            failure.assertHasErrorOutput("error: invalid redeclaration of 'sum(a:b:)'")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

                        @Override
                        public FileVisitResult visitFile(Path sourceFile, BasicFileAttributes attributes) throws IOException {
                            Path targetFile = targetDir.resolve(sourceDir.relativize(sourceFile));
                            Files.copy(sourceFile, targetFile, COPY_ATTRIBUTES, REPLACE_EXISTING);
    
                            return FileVisitResult.CONTINUE;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/IsolatingIncrementalAnnotationProcessingIntegrationTest.groovy

                        String className = typeElement.getSimpleName().toString() + "Thingy";
                        try {
                            JavaFileObject sourceFile = filer.createSourceFile(className, element);
                            Writer writer = sourceFile.openWriter();
                            try {
                                writer.write("class " + className + " {");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  5. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/android/RealLifeAndroidBuildPerformanceTest.groovy

                    )
                }
                if (!matched) {
                    throw new IllegalStateException("Unable to add supplementary repositories to '$sourceFile'.")
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:24:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppIncrementalBuildIntegrationTest.groovy

            def headerFile = file("app/src/main/not_included/hello.h") << """
                const char* get_hello();
                #define PREFIX get_hello()
            """
    
            def sourceFile = file("app/src/main/cpp/hello.cpp")
            sourceFile.text = """
                #include <iostream>
                #include "../not_included/hello.h"
    
                const char* get_hello() {
                    return "Hi";
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 40.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy

        @TempDir
        File jacocoDestinationDir
    
        def "reports when a TestKit build runs with a Java agent and configuration caching enabled"() {
            def builder = artifactBuilder()
            builder.sourceFile("TestAgent.java") << """
                public class TestAgent {
                    public static void premain(String p1, java.lang.instrument.Instrumentation p2) {
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftApplicationIntegrationTest.groovy

                        source.from '../Sources/${app.main.sourceFile.name}'
                    }
                }
                project(':hello') {
                    apply plugin: 'swift-library'
                    dependencies {
                        api project(':log')
                    }
                    library {
                        source.from '../Sources/${app.greeter.sourceFile.name}'
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:43:37 UTC 2024
    - 40.2K bytes
    - Viewed (1)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitCategoriesOrTagsCoverageIntegrationSpec.groovy

            }
    
            /**
             * Add an arbitrary test source file to the sources.  This can be used to add supplementary classes or complex test classes to the sources.
             */
            TestSource sourceFile(String relativePath, String sourceSet = 'test') {
                TestSource source = new TestSource(relativePath, sourceSet)
                sources << source
                return source
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 14:54:49 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

        def jarWithClasses(Map<String, String> javaSourceFiles, TestFile jarFile) {
            def builder = artifactBuilder()
            for (Map.Entry<String, String> entry : javaSourceFiles.entrySet()) {
                builder.sourceFile(entry.key + ".java").text = entry.value
            }
            builder.buildJar(jarFile)
        }
    
        public MavenFileRepository maven(TestFile repo) {
            return new MavenFileRepository(repo)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top