Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for getCanonicalPath (0.55 sec)

  1. impl/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.java

        }
    
        @Test
        public void testValueExtractionWithAPomValueContainingAPath() throws Exception {
            String expected = getTestFile("target/test-classes/target/classes").getCanonicalPath();
    
            Build build = new Build();
            build.setDirectory(expected.substring(0, expected.length() - "/classes".length()));
    
            Model model = new Model();
            model.setBuild(build);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Mar 26 19:31:34 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CWD.java

     */
    public final class CWD implements Supplier<Path> {
        /**
         * Creates instance out of {@link Path}.
         */
        public static CWD create(Path path) {
            return new CWD(CliUtils.getCanonicalPath(path));
        }
    
        private Path directory;
    
        private CWD(Path directory) {
            this.directory = directory;
        }
    
        @Nonnull
        @Override
        public Path get() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Mar 24 14:09:05 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

                if (file.isDirectory()) {
                    traverseFileSystem(rootDir, file, handler);
                } else {
                    final int pos = FileUtil.getCanonicalPath(rootDir).length();
                    final String filePath = FileUtil.getCanonicalPath(file);
                    final String resourcePath = filePath.substring(pos + 1).replace('\\', '/');
                    final InputStream is = InputStreamUtil.create(file);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/io/ResourceUtilTest.java

            url = ResourceUtil.getResource("java/lang/String.class");
            assertNull(ResourceUtil.getFile(url));
        }
    
        private String getRoot() throws IOException {
            final String root = new File("/").getCanonicalPath().replace('\\', '/');
            if (root.startsWith("/")) {
                return root;
            }
            return "/" + root;
        }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/FileUtil.java

         * @return the canonical pathname string representing the same file or directory as this abstract pathname
         */
        public static String getCanonicalPath(final File file) {
            assertArgumentNotNull("file", file);
    
            try {
                return file.getCanonicalPath();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. impl/maven-core/src/test/java/org/apache/maven/MavenLifecycleParticipantTest.java

                try {
                    dependency.setSystemPath(new File(
                                    "src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/pom.xml")
                            .getCanonicalPath());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
    
                project.getModel().addDependency(dependency);
            }
    
            @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/zip/ZipFileUtil.java

            final int pos = urlString.lastIndexOf('!');
            final String zipFilePath = urlString.substring(0, pos);
            final File zipFile = new File(URLUtil.decode(zipFilePath, "UTF8"));
            return FileUtil.getCanonicalPath(zipFile);
        }
    
        /**
         * Closes the Zip file.
         * <p>
         * If {@link ZipFile#close()} throws an exception, an error message is logged. The exception is not rethrown.
         * </p>
         *
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. impl/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java

        }
    
        @Test
        void testValueExtractionWithAPomValueContainingAPath() throws Exception {
            String expected = getTestFile("target/test-classes/target/classes").getCanonicalPath();
    
            Build build = new Build();
            build.setDirectory(expected.substring(0, expected.length() - "/classes".length()));
    
            Model model = new Model();
            model.setBuild(build);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Mar 26 19:31:34 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/jar/JarFileUtil.java

            final int pos = nestedUrlPath.lastIndexOf('!');
            final String jarFilePath = nestedUrlPath.substring(0, pos);
            final File jarFile = new File(URLUtil.decode(jarFilePath, "UTF8"));
            return FileUtil.getCanonicalPath(jarFile);
        }
    
        /**
         * Closes the JAR file.
         * <p>
         * If {@link JarFile#close()} throws an exception, an error message is logged. The exception is not re-thrown.
         * </p>
         *
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileTest.java

            }
    
            @Test
            void testGetCanonicalPath() {
                // Act & Assert
                assertEquals("smb://localhost/share/file.txt", smbFile.getCanonicalPath());
            }
    
            @Test
            void testGetServer() {
                // Act & Assert
                assertEquals("localhost", smbFile.getServer());
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
Back to top