Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 44 for getParentFile (0.08 seconds)

  1. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t05/ProjectInheritanceTest.java

        @Test
        void testDependencyManagement() throws Exception {
            File localRepo = getLocalRepositoryPath();
            File pom0 = new File(localRepo, "p0/pom.xml");
    
            File pom0Basedir = pom0.getParentFile();
    
            File pom1 = new File(pom0Basedir, "p1/pom.xml");
    
            // load everything...
            MavenProject project0 = getProjectWithDependencies(pom0);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t12/ProjectInheritanceTest.java

        @Test
        void testFalsePluginExecutionInheritValue() throws Exception {
            File localRepo = getLocalRepositoryPath();
    
            File pom0 = new File(localRepo, "p0/pom.xml");
            File pom0Basedir = pom0.getParentFile();
            File pom1 = new File(pom0Basedir, "p1/pom.xml");
    
            getProjectWithDependencies(pom0);
            MavenProject project1 = getProjectWithDependencies(pom1);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue May 27 13:59:13 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  3. impl/maven-core/src/test/java/org/apache/maven/project/harness/PomTestWrapper.java

        }
    
        public MavenProject getMavenProject() {
            return mavenProject;
        }
    
        public File getBasedir() {
            return (pomFile != null) ? pomFile.getParentFile() : null;
        }
    
        public void setValueOnModel(String expression, Object value) {
            context.setValue(expression, value);
        }
    
        public Iterator<?> getIteratorForXPathExpression(String expression) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:36 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/DecorateReleaseNotes.java

            File destinationFile = getDestinationFile().get().getAsFile();
    
            getFs().copy(copySpec -> {
                copySpec.from(getHtmlFile());
                copySpec.into(destinationFile.getParentFile());
                copySpec.rename(s -> destinationFile.getName());
    
                // TODO: Maybe this could be simplified by not using the copy infrastructure and just
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Sep 28 06:35:15 GMT 2021
    - 4.1K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelWriter.java

            Objects.requireNonNull(output, "output cannot be null");
            Objects.requireNonNull(model, "model cannot be null");
    
            output.getParentFile().mkdirs();
    
            write(WriterFactory.newXmlWriter(output), options, model);
        }
    
        @Override
        public void write(Writer output, Map<String, Object> options, Model model) throws IOException {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t06/ProjectInheritanceTest.java

        @Test
        void testDependencyManagement() throws Exception {
            File localRepo = getLocalRepositoryPath();
            File pom0 = new File(localRepo, "p0/pom.xml");
    
            File pom0Basedir = pom0.getParentFile();
    
            File pom1 = new File(pom0Basedir, "p1/pom.xml");
    
            // load everything...
            MavenProject project0 = getProjectWithDependencies(pom0);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t12scm/ProjectInheritanceTest.java

        void testScmInfoCalculatedCorrectlyOnParentAndChildRead() throws Exception {
            File localRepo = getLocalRepositoryPath();
    
            File pom0 = new File(localRepo, "p0/pom.xml");
            File pom0Basedir = pom0.getParentFile();
            File pom1 = new File(pom0Basedir, "modules/p1/pom.xml");
    
            // load the child project, which inherits from p0...
            MavenProject project0 = getProject(pom0);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:36 GMT 2025
    - 3K bytes
    - Click Count (0)
  8. impl/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

        protected File getLocalRepositoryPath() throws FileNotFoundException, URISyntaxException {
            File markerFile = getFileForClasspathResource("local-repo/marker.txt");
    
            return markerFile.getAbsoluteFile().getParentFile();
        }
    
        protected static File getFileForClasspathResource(String resource)
                throws FileNotFoundException, URISyntaxException {
            ClassLoader cloader = Thread.currentThread().getContextClassLoader();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  9. impl/maven-core/src/test/java/org/apache/maven/graph/ProjectSelectorTest.java

            final MavenProject mavenProject = createMavenProject("maven-core");
            mavenProject.setFile(tempFile);
    
            final boolean result = sut.isMatchingProject(mavenProject, selector, tempFile.getParentFile());
    
            tempFile.delete();
            assertEquals(true, result);
        }
    
        @Test
        void isMatchingProjectMatchOnDirectoryReturnsTrue(@TempDir File tempDir) {
            String selector = "maven-core";
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

        }
    
        private void baseDirectory(MavenExecutionRequest request) {
            if (request.getBaseDirectory() == null && request.getPom() != null) {
                request.setBaseDirectory(request.getPom().getAbsoluteFile().getParentFile());
            }
        }
    
        /*if_not[MAVEN4]*/
    
        @Override
        @Deprecated
        public MavenExecutionRequest populateFromSettings(MavenExecutionRequest request, Settings settings)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 8.4K bytes
    - Click Count (0)
Back to Top