Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for toAbsolutePath (0.06 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java

        }
    
        @Override
        public String findTool(String toolName) {
            Path toRet = findTool(toolName, Paths.get(getJavaHome()).normalize());
            if (toRet != null) {
                return toRet.toAbsolutePath().toString();
            }
            return null;
        }
    
        private static Path findTool(String toolName, Path installDir) {
            Path bin = installDir.resolve("bin"); // NOI18N
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

                jtc.setJavaHome(Paths.get(javahome.getValue()).normalize().toString());
            } else {
                throw new MisconfiguredToolchainException(
                        "Non-existing JDK home configuration at " + normal.toAbsolutePath());
            }
    
            return jtc;
        }
    
        @Override
        public ToolchainPrivate createDefaultToolchain() {
            // not sure it's necessary to provide a default toolchain here.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java

                    "maven.repo.local",
                    System.getProperty("user.home") + File.separator + ".m2" + File.separator + "repository");
            Path absolutePath = Paths.get(localRepoPath).toAbsolutePath();
            config.setLocalRepository(MavenRepositorySystem.createArtifactRepository(
                    "local", absolutePath, new DefaultRepositoryLayout(), null, null));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                        .resolve(string.substring(2))
                        .normalize()
                        .toAbsolutePath();
            } else {
                // resolve based on $CWD
                return Paths.get(string).normalize().toAbsolutePath();
            }
        }
    
        private VersionFilter buildVersionFilter(String filterExpression) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jul 17 05:56:35 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CliUtils.java

                str = str.substring(1, length - 1);
            }
            return str;
        }
    
        @Nonnull
        public static Path getCanonicalPath(Path path) {
            requireNonNull(path, "path");
            return path.toAbsolutePath().normalize();
        }
    
        @Nonnull
        public static Map<String, String> toMap(Properties properties) {
            requireNonNull(properties, "properties");
            HashMap<String, String> map = new HashMap<>();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 13 18:30:29 UTC 2025
    - 5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/FileUtil.java

            assertArgumentNotNull("pathToCheck", pathToCheck);
            assertArgumentNotNull("baseDirectory", baseDirectory);
    
            final Path normalizedPath = pathToCheck.toAbsolutePath().normalize();
            final Path normalizedBase = baseDirectory.toAbsolutePath().normalize();
            return normalizedPath.startsWith(normalizedBase);
        }
    
        /**
         * Validates that a given file is safe and does not attempt path traversal attacks.
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformer.java

            Model model = builder.build(session, project, src);
            write(model, tgt);
        }
    
        private void deferDeleteFile(Path generatedFile) {
            toDelete.add(generatedFile.toAbsolutePath());
        }
    
        @PreDestroy
        private void doDeleteFiles() {
            for (Path file : toDelete) {
                try {
                    Files.delete(file);
                } catch (IOException e) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 06 18:32:25 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. maven-tests/mvnw

    	  public static void main( String[] args ) throws Exception
    	  {
    	    setDefault( new Downloader() );
    	    java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
    	  }
    	}
    	END
      # For Cygwin/MinGW, switch paths to Windows format before running javac and java
      verbose " - Compiling Downloader.java ..."
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Sep 25 18:22:49 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java

                    } else {
                        Path topDirectory = mavenSession.getTopDirectory();
                        Path locationPath = Paths.get(location).toAbsolutePath().normalize();
                        if (locationPath.startsWith(topDirectory)) {
                            locationPath = topDirectory.relativize(locationPath);
                        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:32 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                File currentPom = project.getFile();
                if (currentPom != null) {
                    MavenSession session = event.getSession();
                    Path current = currentPom.toPath().toAbsolutePath().normalize();
                    Path topDirectory = session.getTopDirectory();
                    if (topDirectory != null && current.startsWith(topDirectory)) {
                        current = topDirectory.relativize(current);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 08 08:49:11 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top