- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for getCanonicalPath (1.65 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CliUtils.java
if (rootDirectory != null) { return getCanonicalPath(rootDirectory); } return null; } @Nonnull public static Path findMandatoryRoot(Path topDirectory) { requireNonNull(topDirectory, "topDirectory"); return getCanonicalPath(Optional.ofNullable(
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Oct 13 18:30:29 UTC 2025 - 5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRoot.java
for (final WebResource possibleJar : possibleJars) { if (possibleJar.isFile() && possibleJar.getName().endsWith(".jar")) { try (final JarFile jarFile = new JarFile(possibleJar.getCanonicalPath())) { final Manifest manifest = jarFile.getManifest(); if (manifest != null && manifest.getEntries() != null) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 3.3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupContext.java
this.invokerRequest = requireNonNull(invokerRequest); this.cwd = CWD.create(invokerRequest.cwd()); this.installationDirectory = CliUtils.getCanonicalPath(invokerRequest.installationDirectory()); this.userDirectory = CliUtils.getCanonicalPath(invokerRequest.userHomeDirectory()); this.containerCapsuleManaged = containerCapsuleManaged; this.options = options;
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
assertEquals("smb1://server/share/file.txt", new SmbFile("smb1://server/share/dir/../file.txt").getCanonicalPath()); assertEquals("smb1://server/file.txt", new SmbFile("smb1://server/share/../file.txt").getCanonicalPath()); assertEquals("smb1://server/share/", new SmbFile("smb1://server/share/").getCanonicalPath()); } @Test public void testGetUncPath() throws MalformedURLException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/zip/ZipFileUtilTest.java
@Override protected URLConnection openConnection(final URL u) throws IOException { return null; } }); final String root = new File("/").getCanonicalPath(); assertEquals(root + "Program Files" + File.separator + "foo.zip", ZipFileUtil.toZipFilePath(url)); }Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/jar/JarFileUtilTest.java
public void testToJarFilePath() throws Exception { final File f = new File("/Program Files/foo.jar"); final URL url = new URL("jar:" + f.toURI().toURL() + "!/"); final String root = new File("/").getCanonicalPath(); assertEquals(root + "Program Files" + File.separator + "foo.jar", JarFileUtil.toJarFilePath(url)); } /** * @throws Exception */ public void testRelativePath() throws Exception {
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java
} final File file = filePath.toFile(); final String canonicalPath = file.getCanonicalPath(); final String varPath = System.getProperty("fess.var.path"); if (varPath != null) { final String baseCanonicalPath = new File(varPath).getCanonicalPath(); if (!canonicalPath.startsWith(baseCanonicalPath)) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 27 07:01:25 UTC 2025 - 9.7K bytes - Viewed (0) -
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) -
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) -
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)