Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for FileModelSource (0.12 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileModelSource.java

     */
    @Deprecated(since = "4.0.0")
    public class FileModelSource extends FileSource implements ModelSource3 {
    
        /**
         * Creates a new model source backed by the specified file.
         *
         * @param pomFile The POM file, must not be {@code null}.
         * @deprecated Use {@link #FileModelSource(Path)} instead.
         */
        @Deprecated
        public FileModelSource(File pomFile) {
            super(pomFile);
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileModelSourceTest.java

     *
     */
    class FileModelSourceTest {
    
        /**
         * Test of equals method, of class FileModelSource.
         */
        @Test
        void testEquals() throws Exception {
            File tempFile = createTempFile("pomTest");
            FileModelSource instance = new FileModelSource(tempFile);
    
            assertFalse(instance.equals(null));
            assertFalse(instance.equals(new Object()));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java

                        case "test:import:pom":
                            return new FileModelSource(new File(getClass()
                                    .getResource("/poms/depmgmt/import.xml")
                                    .getFile()));
                        case "test:other:pom":
                            return new FileModelSource(new File(getClass()
                                    .getResource("/poms/depmgmt/other-import.xml")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

                return false;
            }
        }
    
        @Override
        public TransformerContext build() {
            return context;
        }
    
        public FileModelSource getSource(String groupId, String artifactId) {
            Set<FileModelSource> sources = mappedSources.get(groupId != null ? groupId + ":" + artifactId : artifactId);
            if (sources == null) {
                return null;
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                        .setException(e));
                throw problems.newModelBuildingException();
            }
    
            if (modelSource instanceof FileModelSource) {
                model = model.withPomFile(((FileModelSource) modelSource).getPath());
            }
    
            Model retModel = new Model(model);
    
            problems.setSource(retModel);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingRequest.java

            return this;
        }
    
        @Override
        public synchronized ModelSource getModelSource() {
            if (modelSource == null && pomPath != null) {
                modelSource = new FileModelSource(pomPath);
            }
            return modelSource;
        }
    
        @Override
        public DefaultModelBuildingRequest setModelSource(ModelSource modelSource) {
            this.modelSource = modelSource;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingRequest.java

         * build the model for a POM from the repository, use {@link #setModelSource(ModelSource)} in combination with a
         * {@link FileModelSource} instead.
         *
         * @param pomFile The POM file of the project to build the effective model for, may be {@code null} to build the
         *            model of some POM from the repository.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top