Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for locateExistingPom (0.15 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/locator/DefaultModelLocator.java

        }
    
        @Deprecated
        @Override
        public File locateExistingPom(File project) {
            Path path = locateExistingPom(project != null ? project.toPath() : null);
            return path != null ? path.toFile() : null;
        }
    
        @Override
        public Path locateExistingPom(Path project) {
            if (project == null || Files.isDirectory(project)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/locator/ModelLocator.java

         * Returns the file containing the pom or null if a pom can not be found at the given file or in the given directory.
         *
         * @deprecated Use {@link #locateExistingPom(Path)} instead.
         */
        @Deprecated
        default File locateExistingPom(File project) {
            Path path = locateExistingPom(project != null ? project.toPath() : null);
            return path != null ? path.toFile() : null;
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

                    if (rootDirectory == null) {
                        return;
                    }
                    List<Path> toLoad = new ArrayList<>();
                    Path root = defaultModelBuilder.getModelProcessor().locateExistingPom(rootDirectory);
                    toLoad.add(root);
                    while (!toLoad.isEmpty()) {
                        Path pom = toLoad.remove(0);
                        try {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

            }
            return pom;
        }
    
        @Deprecated
        @Override
        public File locateExistingPom(File projectDirectory) {
            Path path = locateExistingPom(projectDirectory.toPath());
            return path != null ? path.toFile() : null;
        }
    
        @Override
        public Path locateExistingPom(Path projectDirectory) {
            // Note that the ModelProcessor#locatePom never returns null
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/PathSource.java

            String norm = relative.replace('\\', File.separatorChar).replace('/', File.separatorChar);
            Path path = getPath().getParent().resolve(norm);
            Path relatedPom = locator.locateExistingPom(path);
            if (relatedPom != null) {
                return new PathSource(relatedPom);
            }
            return null;
        }
    
        @Override
        public boolean equals(Object o) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Sep 18 11:42:07 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java

             * Returns the file containing the pom or null if a pom can not be
             * found at the given file or in the given directory.
             *
             * @since 4.0.0
             */
            @Nullable
            Path locateExistingPom(@Nonnull Path project);
        }
    
        @Nullable
        ModelSource resolve(@Nonnull ModelLocator modelLocator, @Nonnull String relative);
    
        @Nonnull
        static ModelSource fromPath(@Nonnull Path path) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 29 18:21:40 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileModelSource.java

            relPath = relPath.replace('\\', File.separatorChar).replace('/', File.separatorChar);
    
            Path path = getPath().getParent().resolve(relPath);
    
            Path relatedPom = locator.locateExistingPom(path);
    
            if (relatedPom != null) {
                return new FileModelSource(relatedPom.normalize());
            }
    
            return null;
        }
    
        @Override
        public URI getLocationURI() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContext.java

            return Holder.deref(modelByGA.get(new GAKey(groupId, artifactId)));
        }
    
        @Override
        public Path locate(Path path) {
            File file = modelLocator.locateExistingPom(path.toFile());
            return file != null ? file.toPath() : null;
        }
    
        static class GAKey {
            private final String groupId;
            private final String artifactId;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                String norm = relative.replace('\\', File.separatorChar).replace('/', File.separatorChar);
                Path path = getPath().getParent().resolve(norm);
                Path relatedPom = locator.locateExistingPom(path);
                if (relatedPom != null) {
                    return ModelSource.fromPath(relatedPom);
                }
                return null;
            }
    
            @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. compat/maven-model-builder/pom.xml

                  <exclude>org.apache.maven.model.io.DefaultModelReader#DefaultModelReader():CONSTRUCTOR_REMOVED</exclude>
                  <exclude>org.apache.maven.model.locator.ModelLocator#locateExistingPom(java.io.File):METHOD_NEW_DEFAULT</exclude>
                  <exclude>org.apache.maven.model.management.DefaultDependencyManagementInjector$ManagementModelMerger</exclude>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top