Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 267 for toFile (0.03 sec)

  1. src/test/java/org/codelibs/core/io/CopyUtilTest.java

        StringWriter writer = new StringWriter();
    
        StringBuilder builder = new StringBuilder();
    
        URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt");
    
        File inputFile = URLUtil.toFile(url);
    
        File outputFile = new File(inputFile.getParentFile(), ".out");
    
        /**
         * @throws Exception
         */
        @Test
        public void testIsToOs() throws Exception {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultArtifactManager.java

                        .flatMap(this::getProjectArtifacts)
                        .filter(a -> Objects.equals(id, id(a)))
                        .forEach(a -> a.setFile(path != null ? path.toFile() : null));
            }
            if (path == null) {
                paths.remove(id);
            } else {
                paths.put(id, path);
            }
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 16:01:38 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/TraversalUtil.java

         * @return The base directory above the root package.
         */
        protected static File getBaseDir(final URL url, final String baseName) {
            assertArgumentNotNull("url", url);
    
            File file = URLUtil.toFile(url);
            final String[] paths = StringUtil.split(baseName, "/");
            for (final String path : paths) {
                file = file.getParentFile();
            }
            return file;
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/net/URLUtil.java

         *
         * @param fileUrl
         *            The URL of the Jar file. Must not be {@literal null}.
         * @return The {@link File} of the Jar file.
         */
        public static File toFile(final URL fileUrl) {
            assertArgumentNotNull("fileUrl", fileUrl);
    
            try {
                final String path = URLDecoder.decode(fileUrl.getPath(), "UTF-8");
                return new File(path).getAbsoluteFile();
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

                                public Path findRoot(Path basedir) {
                                    return basedir;
                                }
                            }));
    
            context.setProjectDirectory(tempDir.toFile());
    
            File file = new File(tempDir.resolve("file.txt").toString());
            if (!file.createNewFile()) {
                throw new IOException("Can't create " + file);
            }
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 07:09:12 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java

                    Map<String, ?> options = Collections.singletonMap(MetadataReader.IS_STRICT, Boolean.FALSE);
    
                    Metadata pluginGroupMetadata =
                            metadataReader.read(metadata.getPath().toFile(), options);
    
                    List<org.apache.maven.artifact.repository.metadata.Plugin> plugins = pluginGroupMetadata.getPlugins();
    
                    if (plugins != null) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 17 13:14:10 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

                if (normalizedPath.contains("..")) {
                    throw new IllegalArgumentException("Invalid file path");
                }
                final File file = filePath.toFile();
                final String canonicalPath = file.getCanonicalPath();
                final String varPath = System.getProperty("fess.var.path");
                if (varPath != null) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 07:01:25 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/PluginHelper.java

                    }
                } catch (final Exception e) {
                    throw new PluginException("Failed to install the artifact " + artifact.getName(), e);
                }
            } else {
                try (final InputStream in = new FileInputStream(url)) {
                    CopyUtil.copy(in, ResourceUtil.getPluginPath(fileName).toFile());
                } catch (final Exception e) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java

                    file = basedir.resolve(file.getPath())
                            .normalize()
                            .toAbsolutePath()
                            .toFile();
                }
            }
            return file;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/builtin/BuiltinShellCommandRegistryFactory.java

                        }
                        processArgs.add(String.join(" ", Arrays.asList(input.args())));
                        builder.command(processArgs);
                        builder.directory(shellContext.cwd.get().toFile());
                        Process process = builder.start();
                        Thread out = new Thread(new StreamGobbler(process.getInputStream(), shellContext.writer));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top