Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 219 for toPaths (0.13 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/artifacts/transform/TransformOutputs.java

         *     {@literal @}Override
         *     public void transform(TransformOutputs outputs) {
         *         File myOutput = outputs.dir("my-output");
         *         Files.write(myOutput.toPath().resolve("file.txt"), "Generated text");
         *     }
         * }
         * </pre>
         *
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 05 15:49:03 UTC 2019
    - 5.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classloader/ClassLoaderUtilsTest.groovy

            File classpath = ClasspathUtil.getClasspathForClass(testClass)
            File classFile = new File(classpath, testClass.name.replace('.', '/') + '.class')
            byte[] bytes = Files.readAllBytes(classFile.toPath())
            MyClassLoader myClassLoader = new MyClassLoader()
    
            when:
            Class klass = ClassLoaderUtils.define(myClassLoader, DefaultClassLoaderFactoryTestHelper.name, bytes)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. 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)
  4. maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

            this.modelLocator = modelLocator;
            this.modelReader = modelReader;
        }
    
        @Deprecated
        @Override
        public File locatePom(File projectDirectory) {
            return locatePom(projectDirectory.toPath()).toFile();
        }
    
        @Override
        public Path locatePom(Path projectDirectory) {
            // Note that the ModelProcessor#locatePom never returns null
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top