Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for isAbsolute (0.34 seconds)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java

         */
        @Nonnull
        default Path targetPath(@Nonnull Project project) {
            Optional<Path> targetPath = targetPath();
            // The test for `isAbsolute()` is a small optimization for avoiding the call to `getOutputDirectory(…)`.
            return targetPath.filter(Path::isAbsolute).orElseGet(() -> {
                Path base = project.getOutputDirectory(scope());
                return targetPath.map(base::resolve).orElse(base);
            });
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java

                return path;
            }
    
            if (path == null) {
                return null;
            }
    
            String s = stripBasedirToken(path);
    
            File file = new File(s);
            if (file.isAbsolute()) {
                // path was already absolute, just normalize file separator and we're done
                s = file.getPath();
            } else if (file.getPath().startsWith(File.separator)) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/ResolveFile.java

     */
    @Deprecated
    public class ResolveFile {
        public static File resolveFile(File file, String baseDirectory) {
            if (file == null) {
                return null;
            } else if (file.isAbsolute()) {
                return file;
            } else if (file.getPath().startsWith(File.separator)) {
                // drive-relative Windows path
                return file.getAbsoluteFile();
            } else {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultPathTranslator.java

            if (path != null && basedir != null) {
                path = path.replace('\\', File.separatorChar).replace('/', File.separatorChar);
    
                File file = new File(path);
                if (file.isAbsolute()) {
                    // path was already absolute, just normalize file separator and we're done
                    result = file.getPath();
                } else if (file.getPath().startsWith(File.separator)) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

            this.basedir = basedir;
        }
    
        @Override
        public File translatePath(File path) {
            File result = path;
    
            if (path != null && basedir != null) {
                if (path.isAbsolute()) {
                    // path is already absolute, we're done
                } else if (path.getPath().startsWith(File.separator)) {
                    // drive-relative Windows path, don't align with base dir but with drive root
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/FileProfileActivator.java

                        .setException(e));
                return false;
            }
    
            if (path == null) {
                return false;
            }
    
            File f = new File(path);
    
            if (!f.isAbsolute()) {
                return false;
            }
    
            boolean fileExists = f.exists();
    
            return missing ? !fileExists : fileExists;
        }
    
        @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  7. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsBuilder.java

            String localRepository = userSettings.getLocalRepository();
            if (localRepository != null && !localRepository.isEmpty()) {
                File file = new File(localRepository);
                if (!file.isAbsolute() && file.getPath().startsWith(File.separator)) {
                    userSettings.setLocalRepository(file.getAbsolutePath());
                }
            }
    
            if (hasErrors(problems.getProblems())) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  8. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/info/GitInfo.java

                    }
                    head = workTree.resolve("HEAD");
                    final Path commonDir = Paths.get(readFirstLine(workTree.resolve("commondir")));
                    if (commonDir.isAbsolute()) {
                        gitDir = commonDir;
                    } else {
                        // this is the common case
                        gitDir = workTree.resolve(commonDir);
                    }
                }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 7.8K bytes
    - Click Count (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

            // for the local repository setting.
    
            File localRepository = new File(url.substring("file://".length()));
    
            if (!localRepository.isAbsolute()) {
                url = "file://" + localRepository.getCanonicalPath();
            }
    
            return url;
        }
    
        @Override
        public ArtifactResolutionResult resolve(ArtifactResolutionRequest request) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 31.2K bytes
    - Click Count (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                            d.getManagementKey(),
                            "is missing.",
                            d);
                } else {
                    File sysFile = new File(systemPath);
                    if (!sysFile.isAbsolute()) {
                        addViolation(
                                problems,
                                Severity.ERROR,
                                Version.BASE,
                                prefix + "systemPath",
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 03 15:06:05 GMT 2025
    - 66.8K bytes
    - Click Count (0)
Back to Top