Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for toAbsolutePath (0.05 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java

    public abstract class MavenInvokerTestSupport {
        static {
            System.setProperty(
                    "library.jline.path",
                    Path.of("target/dependency/org/jline/nativ").toAbsolutePath().toString());
        }
    
        public static final String POM_STRING = """
                    <?xml version="1.0" encoding="UTF-8"?>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 21 12:17:55 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionIT.java

                        Process p = Runtime.getRuntime().exec(new String[] {
                            Paths.get(System.getProperty("java.home"), "bin/java").toString(),
                            "-jar",
                            file.toAbsolutePath().toString(),
                            "5.32",
                            "5.27"
                        });
    
                        try {
                            assertEquals(0, p.waitFor(), "Unexpected exit code");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java

            this.project = project;
    
            Path basedir = null;
    
            if (project != null) {
                Path projectFile = project.getBasedir();
                basedir = projectFile.toAbsolutePath();
            }
    
            if (basedir == null) {
                basedir = session.getTopDirectory();
            }
    
            if (basedir == null) {
                basedir = Paths.get(System.getProperty("user.dir"));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. impl/maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorPathTest.java

            request.setValuePreprocessor(preprocessor).setPathTranslator(translator);
    
            configurator.configureBean(request);
    
            assertEquals(Paths.get("base/test").toAbsolutePath(), bean.file);
        }
    
        @Test
        void testChildConfigurationElement() throws BeanConfigurationException {
            SomeBean bean = new SomeBean();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  5. compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

         *
         * @param path The file, must not be {@code null}.
         * @since 4.0.0
         */
        public FileSource(Path path) {
            this.path = Objects.requireNonNull(path, "path cannot be null").toAbsolutePath();
            this.hashCode = Objects.hash(path);
        }
    
        @Override
        public InputStream getInputStream() throws IOException {
            return Files.newInputStream(path);
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 15 18:51:29 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java

        }
    
        @Override
        public String findTool(String toolName) {
            Path toRet = findTool(toolName, Paths.get(getJavaHome()).normalize());
            if (toRet != null) {
                return toRet.toAbsolutePath().toString();
            }
            return null;
        }
    
        private static Path findTool(String toolName, Path installDir) {
            Path bin = installDir.resolve("bin"); // NOI18N
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

                jtc.setJavaHome(Paths.get(javahome.getValue()).normalize().toString());
            } else {
                throw new MisconfiguredToolchainException(
                        "Non-existing JDK home configuration at " + normal.toAbsolutePath());
            }
    
            return jtc;
        }
    
        @Override
        public ToolchainPrivate createDefaultToolchain() {
            // not sure it's necessary to provide a default toolchain here.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. impl/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java

                    "maven.repo.local",
                    System.getProperty("user.home") + File.separator + ".m2" + File.separator + "repository");
            Path absolutePath = Paths.get(localRepoPath).toAbsolutePath();
            config.setLocalRepository(MavenRepositorySystem.createArtifactRepository(
                    "local", absolutePath, new DefaultRepositoryLayout(), null, null));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CliUtils.java

                str = str.substring(1, length - 1);
            }
            return str;
        }
    
        @Nonnull
        public static Path getCanonicalPath(Path path) {
            requireNonNull(path, "path");
            return path.toAbsolutePath().normalize();
        }
    
        @Nonnull
        public static Map<String, String> toMap(Properties properties) {
            requireNonNull(properties, "properties");
            HashMap<String, String> map = new HashMap<>();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 13 18:30:29 UTC 2025
    - 5K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformer.java

            Model model = builder.build(session, project, src);
            write(model, tgt);
        }
    
        private void deferDeleteFile(Path generatedFile) {
            toDelete.add(generatedFile.toAbsolutePath());
        }
    
        @PreDestroy
        private void doDeleteFiles() {
            for (Path file : toDelete) {
                try {
                    Files.delete(file);
                } catch (IOException e) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 06 18:32:25 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top