Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for toAbsolutePath (0.07 sec)

  1. impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java

            Path beforePomFile =
                    Paths.get("src/test/resources/projects/transform/before.pom").toAbsolutePath();
            Path afterPomFile =
                    Paths.get("src/test/resources/projects/transform/after.pom").toAbsolutePath();
            Path tempFile = Files.createTempFile("", ".pom");
            Files.delete(tempFile);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 06 18:32:25 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb1/SmbClientTest.java

            MountableFile mountableUsers = MountableFile.forHostPath(usersDir.toAbsolutePath().toString());
            MountableFile mountableTestuser1 = MountableFile.forHostPath(testuser1Dir.toAbsolutePath().toString());
            MountableFile mountableTestuser2 = MountableFile.forHostPath(testuser2Dir.toAbsolutePath().toString());
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Tue Sep 23 06:42:59 UTC 2025
    - 30K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.java

        private MavenSession newMavenSession() throws Exception {
            return createMavenSession(null);
        }
    
        @Test
        public void testUri() throws Exception {
            Path path = Paths.get("").toAbsolutePath();
    
            MavenSession mavenSession = createMavenSession(null);
            mavenSession.getRequest().setTopDirectory(path);
            mavenSession.getRequest().setRootDirectory(path);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Mar 26 19:31:34 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  4. impl/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java

            assertInstanceOf(Path.class, ee.evaluate("${session.rootDirectory}"));
        }
    
        @Test
        public void testUri() throws Exception {
            Path path = Paths.get("").toAbsolutePath();
    
            MavenSession mavenSession = createMavenSession(null);
            mavenSession.getRequest().setTopDirectory(path);
            mavenSession.getRequest().setRootDirectory(path);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Mar 26 19:31:34 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbClientTest.java

            MountableFile mountableUsers = MountableFile.forHostPath(usersDir.toAbsolutePath().toString());
            MountableFile mountableTestuser1 = MountableFile.forHostPath(testuser1Dir.toAbsolutePath().toString());
            MountableFile mountableTestuser2 = MountableFile.forHostPath(testuser2Dir.toAbsolutePath().toString());
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Tue Sep 23 06:42:59 UTC 2025
    - 31.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  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