Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 352 for relativize (0.07 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/vagrant/VagrantMachine.java

        public static String convertLinuxPath(Project project, String path) {
            return "/elasticsearch/" + project.getRootDir().toPath().relativize(Paths.get(path));
        }
    
        public static String convertWindowsPath(Project project, String path) {
            return "C:\\elasticsearch\\" + project.getRootDir().toPath().relativize(Paths.get(path)).toString().replace('/', '\\');
        }
    
        public static class VagrantExecSpec {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 7.5K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ForbiddenPatternsTask.java

                    .boxed()
                    .collect(Collectors.toList());
    
                URI baseUri = getRootDir().orElse(projectLayout.getProjectDirectory().getAsFile()).get().toURI();
                String path = baseUri.relativize(f.toURI()).toString();
                failures.addAll(
                    invalidLines.stream()
                        .map(l -> new AbstractMap.SimpleEntry<>(l + 1, lines.get(l)))
                        .flatMap(
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.8K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/groovy/elasticsearch.build-complete.gradle

                // In cases where we don't match any workspace files, exclude everything
                ant.exclude(name: "**/*")
              } else {
                fileSet.each {
                  ant.include(name: projectDir.toPath().relativize(it.toPath()))
                }
              }
            }
    
            fileset(dir: "${gradle.gradleUserHomeDir}/daemon/${gradle.gradleVersion}", followsymlinks: false) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2K bytes
    - Click Count (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleKotlinDslReferencePlugin.java

                    }
                );
        }
    
        private static URI toUri(File projectRootDir, File file, String commitId) {
            try {
                URI relativeLocation = projectRootDir.toURI().relativize(file.toURI());
                return new URI("https://github.com/gradle/gradle/blob/" + commitId + "/" + relativeLocation);
            } catch (URISyntaxException e) {
                throw new RuntimeException(e);
            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed May 28 11:34:42 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/doc/SnippetsTask.groovy

                    }
                    if (line ==~ /-{4,}\s*/) { // Four dashes looks like a snippet
                        if (snippet == null) {
                            Path path = docs.dir.toPath().relativize(file.toPath())
                            snippet = new Snippet(path: path, start: lineNumber, testEnv: testEnv, name: name)
                            if (lastLanguageLine == lineNumber - 1) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 20 10:08:26 GMT 2021
    - 17.8K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/SplitPackagesAuditTask.java

                if (Files.exists(root) == false) {
                    return;
                }
                Files.walk(root)
                    .filter(p -> p.toString().endsWith(suffix))
                    .map(root::relativize)
                    .filter(p -> p.getNameCount() > 1) // module-info or other things without a package can be skipped
                    .filter(p -> p.toString().startsWith("META-INF") == false)
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 08 22:04:23 GMT 2021
    - 14.2K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java

            if (correctParentPath != null) {
                try {
                    Path correctRelativePath = pomPath.getParent().relativize(correctParentPath);
                    String correctRelativePathStr = correctRelativePath.toString().replace('\\', '/');
    
                    if (!correctRelativePathStr.equals(currentRelativePath)) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  8. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

                Files.walk(dirPath).use { paths ->
                    paths.filter { !it.toFile().isDirectory }
                        .limit(4)
                        .map { dirPath.relativize(it).toString() }
                        .collect(Collectors.toList())
                }
            }?.filter {
                it.value.isNotEmpty()
            } ?: emptyMap()
    
        /**
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Feb 11 11:05:07 GMT 2026
    - 14.3K bytes
    - Click Count (1)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/PruneChangelogsTask.java

                return;
            }
    
            LOGGER.warn("The following changelog files {} be deleted:", dryRun ? "can" : "will");
            LOGGER.warn("");
            filesToDelete.forEach(file -> LOGGER.warn("\t{}", rootDir.relativize(file.toPath())));
    
            if (dryRun == false) {
                final Set<File> failedToDelete = deleteHelper.deleteFiles(filesToDelete);
    
                if (failedToDelete.isEmpty() == false) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 24 10:57:02 GMT 2021
    - 6.6K bytes
    - Click Count (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/GenerateDocInfo.java

                // getting_started.adoc -> getting_started-docinfo.html
                String docInfoName = adocFileName.substring(0, adocFileName.lastIndexOf('.')) + "-docinfo.html";
                String relativePath = adocDir.relativize(adocFile.toPath()).toString();
                File docInfo = new File(destinationDirectory, docInfoName);
                try {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue May 27 09:07:14 GMT 2025
    - 3K bytes
    - Click Count (0)
Back to Top