Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 74 for relativize (0.08 seconds)

  1. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

                val dirPath = dir.toPath()
                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 Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Nov 05 11:43:49 GMT 2025
    - 12.5K bytes
    - Click Count (1)
  2. 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 Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue May 27 09:07:14 GMT 2025
    - 3K bytes
    - Click Count (0)
  3. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt

            val nodeName = nodeName(node, unit, file)
            return IncubatingDescription(
                name = nodeName,
                sourceRelativePath = repositoryRoot.relativize(file.toPath()),
                lineNumber = node.begin.map { it.line }.orElse(-1)
            )
        }
    
        private
        fun findVersionFromJavadoc(javadoc: Javadoc): String? =
            javadoc.blockTags
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Jun 02 09:57:54 GMT 2025
    - 14.1K 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 Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed May 28 11:34:42 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

                Document document = entry.getValue();
    
                // Calculate the relative path from common root
                Path relativePath = commonRoot.relativize(originalPath);
                Path tempPomPath = tempDir.resolve(relativePath);
    
                // Ensure parent directories exist
                Files.createDirectories(tempPomPath.getParent());
    
                // Write POM to temp location
                writePomToFile(document, tempPomPath);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 37K bytes
    - Click Count (0)
  6. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt

                Files.walkFileTree(dir, object : SimpleFileVisitor<Path>() {
                    override fun visitFile(file: Path, attrs: BasicFileAttributes): FileVisitResult {
                        val zipEntry = ZipEntry(dir.relativize(file).toString())
                        processEntry(zipEntry, builder)
                        return FileVisitResult.CONTINUE
                    }
                })
            }
    
            @Throws(IOException::class)
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Apr 11 15:53:18 GMT 2025
    - 7.1K 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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java

                        Path locationPath = Paths.get(location).toAbsolutePath().normalize();
                        if (locationPath.startsWith(topDirectory)) {
                            locationPath = topDirectory.relativize(locationPath);
                        }
                        stringBuilder.append(" (").append(locationPath).append(")");
                    }
                }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:32 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

            }
            return packaged;
        }
    
        private Path relativizeOutputFile(final Path outputFile) {
            Path rootDirectory = session.getRequest().getRootDirectory();
            return rootDirectory.relativize(outputFile);
        }
    
        /**
         * Tries to resolve the specified artifact from the artifacts of the given project.
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Dec 15 11:20:38 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

    /**
     * A path translator that resolves relative paths against a specific base directory.
     *
     */
    public class BasedirBeanConfigurationPathTranslator implements BeanConfigurationPathTranslator {
    
        private final File basedir;
    
        /**
         * Creates a new path translator using the specified base directory.
         *
         * @param basedir The base directory to resolve relative paths against, may be {@code null} to disable path
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.1K bytes
    - Click Count (0)
Back to Top