Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 330 for toPaths (0.1 sec)

  1. platforms/ide/ide-native/src/main/groovy/org/gradle/ide/visualstudio/tasks/internal/RelativeFileNameTransformer.java

            LinkedList<String> fromPath = splitPath(from);
            LinkedList<String> toPath = splitPath(to);
            List<String> relativePath = new ArrayList<String>();
    
            while (!fromPath.isEmpty() && !toPath.isEmpty() && fromPath.get(0).equals(toPath.get(0))) {
                fromPath.removeFirst();
                toPath.removeFirst();
            }
            for (String ignored : fromPath) {
                relativePath.add("..");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

            def target = tmpDir.file("target").tap { Files.createSymbolicLink(it.toPath(), linked.toPath()) }
    
            when:
            deleter.ensureEmptyDirectory(target, true)
    
            then:
            target.assertIsEmptyDir()
            linked.assertIsEmptyDir()
            Files.readSymbolicLink(target.toPath()) == linked.toPath()
            content.assertDoesNotExist()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/util/internal/RelativePathUtilTest.groovy

    class RelativePathUtilTest extends Specification {
    
        def "relative path from #fromPath to #toPath is #path"() {
            when:
            def from = new File(fromPath)
            def to = new File(toPath)
    
            then:
            RelativePathUtil.relativePath(from, to) == path
    
            where:
            fromPath | toPath  | path
            "a"      | "a/b"   | "b"
            "a"      | "a/b/a" | "b/a"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/internal/classpath/InPlaceClasspathBuilder.java

            }
        }
    
        private static void buildJar(File jarFile, Action action) throws IOException {
            Files.createDirectories(jarFile.getParentFile().toPath());
            try (ZipArchiveOutputStream outputStream = new ZipArchiveOutputStream(new BufferedOutputStream(Files.newOutputStream(jarFile.toPath()), BUFFER_SIZE))) {
                outputStream.setLevel(0);
                action.execute(new ZipEntryBuilder(outputStream));
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:05:09 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/GenerateDocInfo.java

                String relativePath = adocDir.relativize(adocFile.toPath()).toString();
                File docInfo = new File(destinationDirectory, docInfoName);
                try {
                    Files.write(docInfo.toPath(), Collections.singleton(String.format("<meta name=\"adoc-src-path\" content=\"%s\">", relativePath)), StandardOpenOption.CREATE);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 28 06:35:34 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/native/src/jmh/java/org/gradle/internal/nativeintegration/filesystem/FileMetadataAccessorBenchmark.java

            missing = new File(UUID.randomUUID().toString());
            missingPath = missing.toPath();
            directory = File.createTempFile("jmh", "dir");
            directoryPath = directory.toPath();
            directory.mkdirs();
            realFile = File.createTempFile("jmh", "tmp");
            realFilePath = realFile.toPath();
    
            FileOutputStream fos = new FileOutputStream(realFile);
            fos.write(new byte[1024]);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/ModuleVersionResolveExceptionTest.groovy

            def cause = new RuntimeException()
            def exception = new ModuleVersionResolveException(newSelector(mid("a", "b"), "c"), cause)
            def onePath = exception.withIncomingPaths([[a, b, c]])
            def twoPaths = exception.withIncomingPaths([[a, b, c], [a, c]])
    
            expect:
            exception.message == 'Could not resolve a:b:c.'
    
            onePath.message == toPlatformLineSeparators('''Could not resolve a:b:c.
    Required by:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/local/internal/DirectoryBuildCacheCleanupIntegrationTest.groovy

            return "Build cache"
        }
    
        @Override
        void createBuildCacheEntry(String key, File value, long timestamp) {
            File cacheFile = cacheDir.file(key)
            Files.copy(value.toPath(), cacheFile.toPath())
            writeLastFileAccessTimeToJournal(cacheFile, timestamp)
        }
    
        @Override
        boolean existsBuildCacheEntry(String key) {
            cacheDir.file(key).exists()
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/UnixDerivativeSymlinkDeleterTest.groovy

    class UnixDerivativeSymlinkDeleterTest extends AbstractSymlinkDeleterTest {
        @Override
        protected void createSymbolicLink(File link, TestFile target) {
            Files.createSymbolicLink(link.toPath(), target.toPath())
        }
    
        @Override
        protected boolean canCreateSymbolicLinkToFile() {
            return true
        }
    
        @Override
        protected boolean canCreateSymbolicLinkToDirectory() {
            return true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. platforms/jvm/scala/src/main/java/org/gradle/api/internal/tasks/scala/ZincScalaCompiler.java

            for (File classpathEntry : spec.getCompileClasspath()){
                classpath.add(CONVERTER.toVirtualFile(classpathEntry.toPath()));
            }
            List<VirtualFile> sourceFiles = new LinkedList<>();
            for(File f: spec.getSourceFiles()){
                sourceFiles.add(CONVERTER.toVirtualFile(f.toPath()));
            }
            CompileOptions compileOptions = CompileOptions.create()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top