Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for asFile (0.18 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDependencyResolutionIntegrationTest.groovy

                    implementation project(':b')
                }
                task resolve(type: InputTask) {
                    inValue = configurations.implementation.elements.map { files -> files.collect { it.asFile.text.toInteger() } }
                    outFile = file('out.txt')
                }
            """
    
            given:
            configurationCacheRun(":resolve")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformBuildOperationIntegrationTest.groovy

                    @InputArtifact
                    abstract Provider<FileSystemLocation> getInputArtifact()
    
                    void transform(TransformOutputs outputs) {
                        def input = inputArtifact.get().asFile
                        println "processing [\${input.name}]"
                        assert input.file
                        for (def i : 1..parameters.multiplier.get()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 67.8K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    val output: Provider<RegularFile> = layout.buildDirectory.file("myOutput.txt")
    
    // If you really need the java.io.File for a non lazy API
    output.get().asFile
    
    // Or a path for a lazy String based API
    output.map { it.asFile.path }
    ----
    ======
    [.multi-language-sample]
    ======
    .build.gradle
    [source,groovy]
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            def f1 = elements.get()
    
            then:
            f1*.asFile == [file1, file2]
    
            and:
            1 * callable.call() >> ["src1", "src2"]
            _ * fileResolver.resolve("src1") >> file1
            _ * fileResolver.resolve("src2") >> file2
            0 * _
    
            when:
            def f2 = elements.get()
    
            then:
            f2*.asFile == [file2]
    
            and:
            1 * callable.call() >> ["2"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc

    The former, now `@Deprecated` usage:
    
    ```groovy
    tasks.named('test') {
        reports.junitXml.setDestination(layout.buildDirectory.file('reports/my-report-old').get().asFile) // DEPRECATED
    }
    
    ```
    
    can be replaced with:
    
    ```groovy
    tasks.named('test') {
        reports.junitXml.outputLocation = layout.buildDirectory.dir('reports/my-report')
    }
    ```
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  6. maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            List<CoreExtension> extensions = new ArrayList<>();
            if (extensionsFile.isFile()) {
                extensions.addAll(readCoreExtensionsDescriptor(extensionsFile));
            }
            if (userHomeExtensionsFile.isFile()) {
                extensions.addAll(readCoreExtensionsDescriptor(userHomeExtensionsFile));
            }
    
            if (extensions.isEmpty()) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:59 UTC 2024
    - 72.6K bytes
    - Viewed (0)
  7. src/crypto/tls/tls_test.go

    				return +1
    			}
    			// ECDHE < *
    			if aSuite.flags&suiteECDHE != 0 && bSuite.flags&suiteECDHE == 0 {
    				return -1
    			} else if aSuite.flags&suiteECDHE == 0 && bSuite.flags&suiteECDHE != 0 {
    				return +1
    			}
    			// AEAD < CBC
    			if aSuite.aead != nil && bSuite.aead == nil {
    				return -1
    			} else if aSuite.aead == nil && bSuite.aead != nil {
    				return +1
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  8. src/go/build/build.go

    	}
    
    	f, err := os.Open(path)
    	if err != nil {
    		return nil, err // nil interface
    	}
    	return f, nil
    }
    
    // isFile determines whether path is a file by trying to open it.
    // It reuses openFile instead of adding another function to the
    // list in Context.
    func (ctxt *Context) isFile(path string) bool {
    	f, err := ctxt.openFile(path)
    	if err != nil {
    		return false
    	}
    	f.Close()
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  9. src/cmd/dist/build.go

    	if b == "" {
    		b = "power8"
    	}
    	goppc64 = b
    
    	b = os.Getenv("GORISCV64")
    	if b == "" {
    		b = "rva20u64"
    	}
    	goriscv64 = b
    
    	if p := pathf("%s/src/all.bash", goroot); !isfile(p) {
    		fatalf("$GOROOT is not set correctly or not exported\n"+
    			"\tGOROOT=%s\n"+
    			"\t%s does not exist", goroot, p)
    	}
    
    	b = os.Getenv("GOHOSTARCH")
    	if b != "" {
    		gohostarch = b
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  10. configure.py

                                                          ask_python_bin_path,
                                                          default_python_bin_path)
        # Check if the path is valid
        if os.path.isfile(python_bin_path) and os.access(python_bin_path, os.X_OK):
          break
        elif not os.path.exists(python_bin_path):
          print('Invalid python path: {} cannot be found.'.format(python_bin_path))
        else:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 04:32:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
Back to top