Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for isAbsolute (0.16 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

        @Override
        public boolean get(URI relativeSource, Path target) {
            requireNonNull(relativeSource, "relativeSource is null");
            requireNonNull(target, "target is null");
            if (relativeSource.isAbsolute()) {
                throw new IllegalArgumentException("Supplied URI is not relative");
            }
            URI source = baseURI.resolve(relativeSource);
            if (!source.toASCIIString().startsWith(baseURI.toASCIIString())) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. 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)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/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)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/FileProfileActivator.java

                        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;
        }
    
        @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSettingsBuilder.java

            String localRepository = effective.getLocalRepository();
            if (localRepository != null && !localRepository.isEmpty()) {
                Path file = Paths.get(localRepository);
                if (!file.isAbsolute() && file.toString().startsWith(File.separator)) {
                    effective = effective.withLocalRepository(file.toAbsolutePath().toString());
                }
            }
    
            if (hasErrors(problems)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java

            // TODO Copied from the DefaultInterpolator. We likely want to resurrect the PathTranslator or at least a
            // similar component for re-usage
            if (file != null) {
                if (file.isAbsolute()) {
                    // path was already absolute, just normalize file separator and we're done
                } else if (file.getPath().startsWith(File.separator)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Jan 30 23:39:19 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/project/MavenProject.java

            if (path != null) {
                path = path.trim();
                if (!path.isEmpty()) {
                    File file = new File(path);
                    if (file.isAbsolute()) {
                        path = file.getAbsolutePath();
                    } else if (".".equals(path)) {
                        path = getBasedir().getAbsolutePath();
                    } else {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 56.6K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                            "is missing.",
                            d);
                } else {
                    File sysFile = new File(systemPath);
                    if (!sysFile.isAbsolute()) {
                        addViolation(
                                problems,
                                Severity.ERROR,
                                Version.BASE,
                                prefix + "systemPath",
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
Back to top