Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for getAbsolutePath (0.2 sec)

  1. maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java

                // drive-relative Windows path, don't align with project directory but with drive root
                s = file.getAbsolutePath();
            } else {
                // an ordinary relative path, align with project directory
                s = new File(new File(basedir, s).toURI().normalize()).getAbsolutePath();
            }
    
            return s;
        }
    
        private String stripBasedirToken(String s) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  2. maven-compat/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java

                } catch (Exception e) {
                    throw new MisconfiguredToolchainException(
                            "Cannot read toolchains file at " + userToolchainsFile.getAbsolutePath(), e);
                }
    
            } else if (userToolchainsFile != null) {
                logger.debug("Toolchains configuration was not found at {}", userToolchainsFile);
            }
    
            return toolchains;
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

            sessionScope.enter();
            try {
                sessionScope.seed(MavenSession.class, mock(MavenSession.class));
    
                String artifactBasedir = new File(getBasedir(), "src/test/resources/artifact-install").getAbsolutePath();
    
                Artifact artifact = createArtifact("artifact", "1.0");
    
                File file = new File(artifactBasedir, "artifact-1.0.jar");
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                    }
                }
    
                if (pluginDescriptor == null) {
                    throw new IOException("No plugin descriptor found at " + getPluginDescriptorLocation());
                }
            } catch (IOException e) {
                throw new PluginDescriptorParsingException(plugin, pluginFile.getAbsolutePath(), e);
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/MavenProject.java

                    File file = new File(path);
                    if (file.isAbsolute()) {
                        path = file.getAbsolutePath();
                    } else if (".".equals(path)) {
                        path = getBasedir().getAbsolutePath();
                    } else {
                        path = new File(getBasedir(), path).getAbsolutePath();
                    }
    
                    if (!paths.contains(path)) {
                        paths.add(path);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 56.6K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

            if (request.getLocalRepositoryPath() != null) {
                localRepositoryPath = request.getLocalRepositoryPath().getAbsolutePath();
            }
    
            if (localRepositoryPath == null || localRepositoryPath.isEmpty()) {
                localRepositoryPath = new File(System.getProperty("user.home"), ".m2/repository").getAbsolutePath();
            }
    
            try {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Jun 19 15:04:04 GMT 2023
    - 8.1K bytes
    - Viewed (0)
  7. maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java

            }
        }
    
        @Test
        void testGetLocation() {
            File txtFile = new File("target/test-classes/source.txt");
            FileSource source = new FileSource(txtFile);
            assertEquals(txtFile.getAbsolutePath(), source.getLocation());
        }
    
        @Test
        void testGetFile() {
            File txtFile = new File("target/test-classes/source.txt");
            FileSource source = new FileSource(txtFile);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java

            assertEquals(new File(basedir, "dir").getAbsolutePath(), aligned);
        }
    
        @Test
        void testUnalignToBasedirWherePathEqualsBasedir() {
            File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
    
            String unaligned = new DefaultPathTranslator().unalignFromBaseDirectory(basedir.getAbsolutePath(), basedir);
    
            assertEquals(".", unaligned);
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/ProfileActivationFilePathInterpolator.java

                public Object getValue(String expression) {
                    if ("rootDirectory".equals(expression)) {
                        Path root = rootLocator.findMandatoryRoot(basedir);
                        return root.toFile().getAbsolutePath();
                    }
                    return null;
                }
            });
    
            interpolator.addValueSource(new MapBasedValueSource(context.getProjectProperties()));
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

            ArtifactRepository r = repositorySystem.createArtifactRepository(
                    "local", "file://" + getLocalRepositoryPath().getAbsolutePath(), repoLayout, null, null);
    
            return r;
        }
    
        // ----------------------------------------------------------------------
        // Project building
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 6.4K bytes
    - Viewed (0)
Back to top