- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getCanonicalPath (0.1 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/Utils.java
str = str.substring(1, length - 1); } return str; } @Nonnull public static Path getCanonicalPath(Path path) { requireNonNull(path, "path"); try { return path.toRealPath(); } catch (IOException e) { return getCanonicalPath(path.getParent()).resolve(path.getFileName()); } } @Nonnull
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6K 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: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.5K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java
// d.setScope(Artifact.SCOPE_SYSTEM); File file = new File(getBasedir(), "src/test/repository-system/maven-core-2.1.0.jar"); assertTrue(file.exists()); d.setSystemPath(file.getCanonicalPath()); artifact = repositorySystem.createDependencyArtifact(d); // // The request has not set any local or remote repositories as the system scoped dependency being resolved
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.8K 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: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 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: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
* @param file * ファイル。{@literal null}であってはいけません * @return この抽象パス名と同じファイルまたはディレクトリを示す正規パス名文字列 */ public static String getCanonicalPath(final File file) { assertArgumentNotNull("file", file); try { return file.getCanonicalPath(); } catch (final IOException e) { throw new IORuntimeException(e); } } /**
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 9K 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: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 4.3K bytes - Viewed (0) -
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); } /** * Jarファイルをクローズします。 * <p> * {@link JarFile#close()}が例外をスローした場合はログにエラーメッセージを出力します。 例外は再スローされません。 * </p> * * @param jarFile
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5.4K bytes - Viewed (0) -
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); } /** * Zipファイルをクローズします。 * <p> * {@link ZipFile#close()}が例外をスローした場合はログにエラーメッセージを出力します。 例外は再スローされません。 * </p> * * @param zipFile
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5.1K bytes - Viewed (0)