Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 582 for ToPath (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/validation/field/path.go

    type PathOption func(o *pathOptions)
    
    // WithPath generates a PathOption
    func WithPath(p *Path) PathOption {
    	return func(o *pathOptions) {
    		o.path = p
    	}
    }
    
    // ToPath produces *Path from a set of PathOption
    func ToPath(opts ...PathOption) *Path {
    	c := &pathOptions{}
    	for _, opt := range opts {
    		opt(c)
    	}
    	return c.path
    }
    
    // Path represents the path from some root to a particular field.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 11 08:23:53 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/nio/Jdk7FileCanonicalizer.java

    public class Jdk7FileCanonicalizer implements FileCanonicalizer {
        @SuppressWarnings("Since15")
        @Override
        public File canonicalize(File file) throws FileException {
            try {
                return file.toPath().toRealPath().toFile();
            } catch (IOException e) {
                throw new FileException(String.format("Could not canonicalize file %s.", file), e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/snapshot/SnapshottingServiceIntegrationTest.groovy

                def inputFile = project.file("input.txt")
                def snapshottingService = project.services.get(${SnapshottingService.name})
                def snapshot = snapshottingService.snapshotFor(inputFile.toPath())
    
                println("Snapshot for input file \${inputFile.name} is \$snapshot")
            """
            )
            pluginBuilder.generateForBuildSrc()
    
            buildFile << """
                plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 17 10:17:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/GroovyClasspathIntegrationTest.groovy

            buildFile << """
    tasks.register('show') {
      outputs.dir('build/test')
      doLast {
              // Now setup the writer
              def pw = new File(projectDir, "build/test/test-file.txt").toPath().newPrintWriter('UTF-8')
      }
    }
    """
    
            expect:
            succeeds("show")
        }
    
        def "script can use dateutil extensions"() {
            buildFile << """
    tasks.register('show') {
      doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/SingleIncludePatternFileTree.java

                    RelativePath path = new RelativePath(true, pathSegments.toArray(new String[0]));
                    FileVisitDetails details = AttributeBasedFileVisitDetailsFactory.getRootFileVisitDetails(file.toPath(), path, stopFlag, fileSystem);
                    if (!excludeSpec.isSatisfiedBy(details)) {
                        visitor.visitFile(details);
                    }
                }
            } else if (file.isDirectory()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

    import okio.BufferedSink
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.FileSystem
    import okio.Path
    import okio.Path.Companion.toPath
    import okio.buffer
    import okio.gzip
    
    /**
     * Downloads the public suffix list from https://publicsuffix.org/list/public_suffix_list.dat and
     * transforms the file into an efficient format used by OkHttp.
     *
     *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

    import okhttp3.Headers.Companion.headersOf
    import okhttp3.internal.buildCache
    import okhttp3.java.net.cookiejar.JavaNetCookieJar
    import okhttp3.okio.LoggingFilesystem
    import okhttp3.testing.PlatformRule
    import okio.Path.Companion.toPath
    import okio.fakefilesystem.FakeFileSystem
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/nio/NioFileMetadataAccessorTest.groovy

            assert fileMetadata.lastModified == lastModified(file)
        }
    
        private static long lastModified(File file) {
            return Files.getFileAttributeView(file.toPath(), BasicFileAttributeView, LinkOption.NOFOLLOW_LINKS).readAttributes().lastModifiedTime().toMillis()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. build-logic/packaging/src/main/kotlin/gradlebuild/shade/tasks/ShadedJar.kt

                }
                relocatedClassesConfiguration.files.forEach { classesDir ->
                    val classesDirPath = classesDir.toPath()
                    classesDir.walk().filter {
                        val relativePath = classesDirPath.relativePath(it)
                        classesToInclude.contains(relativePath)
                    }.forEach {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 12 10:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/files/misc/kotlin/build.gradle.kts

    tasks.register("ensureDirectory") {
        // Store target directory into a variable to avoid project reference in the configuration cache
        val directory = file("images")
    
        doLast {
            Files.createDirectories(directory.toPath())
        }
    }
    // end::mkdir-example[]
    
    // tag::move-example[]
    tasks.register("moveReports") {
        // Store the build directory into a variable to avoid project reference in the configuration cache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 971 bytes
    - Viewed (0)
Back to top