Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for sourceFiles (0.25 sec)

  1. 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)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/InitScriptExecutionIntegrationTest.groovy

            run()
    
            then:
            output.contains("greetings from empty init script")
        }
    
        private def createExternalJar() {
            ArtifactBuilder builder = artifactBuilder()
            builder.sourceFile('org/gradle/test/BuildClass.java') << '''
                package org.gradle.test;
                public class BuildClass { }
    '''
            builder.buildJar(file("repo/test-1.3.jar"))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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 (0)
  6. 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)
  7. src/cmd/go/internal/work/exec.go

    				continue // Not covering this file.
    			}
    
    			var sourceFile string
    			var coverFile string
    			var key string
    			if base, found := strings.CutSuffix(file, ".cgo1.go"); found {
    				// cgo files have absolute paths
    				base = filepath.Base(base)
    				sourceFile = file
    				coverFile = objdir + base + ".cgo1.go"
    				key = base + ".go"
    			} else {
    				sourceFile = filepath.Join(p.Dir, file)
    				coverFile = objdir + file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/working_with_files.adoc

    [source,groovy]
    ----
    task moveFile {
        doLast {
            def sourceFile = file('source.txt')
            def destFile = file('destination/new_name.txt')
    
            if (sourceFile.renameTo(destFile)) {
                println "File moved successfully."
            }
        }
    }
    
    ----
    
    === Using the `Copy` task
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 70.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/parser.go

    // rule may be covered by multiple parse methods and vice versa.
    //
    // Excluding methods returning slices, parse methods named xOrNil may return
    // nil; all others are expected to return a valid non-nil node.
    
    // SourceFile = PackageClause ";" { ImportDecl ";" } { TopLevelDecl ";" } .
    func (p *parser) fileOrNil() *File {
    	if trace {
    		defer p.trace("file")()
    	}
    
    	f := new(File)
    	f.pos = p.pos()
    
    	// PackageClause
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    declarations that declare packages whose contents it wishes to use,
    followed by a possibly empty set of declarations of functions,
    types, variables, and constants.
    </p>
    
    <pre class="ebnf">
    SourceFile       = PackageClause ";" { ImportDecl ";" } { TopLevelDecl ";" } .
    </pre>
    
    <h3 id="Package_clause">Package clause</h3>
    
    <p>
    A package clause begins each source file and defines the package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top