Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for toAbsolutePath (0.32 sec)

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

                              </dependency>
                            </dependencies>
    
                        </project>
                        """;
            Path pom = cwd.resolve("pom.xml").toAbsolutePath();
            Files.writeString(pom, pomString);
    
            String appJavaString =
                    """
                    package org.apache.maven.samples.sample;
    
                    public class App {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java

                                if ("basedir".equals(expression)) {
                                    return projectDir.toAbsolutePath().toString();
                                } else if (expression.startsWith("basedir.")) {
                                    Path basedir = projectDir.toAbsolutePath();
                                    return new ObjectBasedValueSource(basedir)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingRequest.java

        public DefaultModelBuildingRequest setPomFile(File pomFile) {
            this.pomPath = (pomFile != null) ? pomFile.toPath().toAbsolutePath() : null;
            return this;
        }
    
        @Override
        public DefaultModelBuildingRequest setPomPath(Path pomPath) {
            this.pomPath = (pomPath != null) ? pomPath.toAbsolutePath() : null;
            return this;
        }
    
        @Override
        public synchronized ModelSource getModelSource() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.6K 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemUtils.java

        static String toPath(Model model) {
            String path = "";
    
            if (model != null) {
                Path pomPath = model.getPomPath();
    
                if (pomPath != null) {
                    path = pomPath.toAbsolutePath().toString();
                }
            }
    
            return path;
        }
    
        static String toId(Model model) {
            if (model == null) {
                return "";
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java

                    .build());
            Model actual = transform(initial);
            assertTrue(equalsDeep(expected, actual));
        }
    
        @Test
        void testParent() {
            Path root = Paths.get(".").toAbsolutePath().normalize();
            pomFile = root.resolve("child/pom.xml");
            Model parent = new Model(org.apache.maven.api.model.Model.newBuilder()
                    .groupId("GROUPID")
                    .artifactId("ARTIFACTID")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                this.installationResolver = s -> invokerRequest
                        .installationDirectory()
                        .resolve(s)
                        .normalize()
                        .toAbsolutePath();
                this.userResolver = s ->
                        invokerRequest.userHomeDirectory().resolve(s).normalize().toAbsolutePath();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                File currentPom = project.getFile();
                if (currentPom != null) {
                    MavenSession session = event.getSession();
                    Path current = currentPom.toPath().toAbsolutePath().normalize();
                    Path topDirectory = session.getTopDirectory();
                    if (topDirectory != null && current.startsWith(topDirectory)) {
                        current = topDirectory.relativize(current);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top