Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for setProblems (0.1 sec)

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

            } else {
                this.activeExternalProfiles.clear();
            }
    
            return this;
        }
    
        @Override
        public List<ModelProblem> getProblems() {
            return problems;
        }
    
        public DefaultModelBuildingResult setProblems(List<ModelProblem> problems) {
            if (problems != null) {
                this.problems = new ArrayList<>(problems);
            } else {
                this.problems.clear();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingException.java

         *
         * @return The problems that caused this exception, never {@code null}.
         */
        public List<ModelProblem> getProblems() {
            if (result == null) {
                return Collections.emptyList();
            }
            return Collections.unmodifiableList(result.getProblems());
        }
    
        private static String toMessage(ModelBuildingResult result) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblemCollector.java

            if (result.getModelIds().isEmpty()) {
                DefaultModelBuildingResult tmp = new DefaultModelBuildingResult();
                tmp.setEffectiveModel(result.getEffectiveModel());
                tmp.setProblems(getProblems());
                tmp.setActiveExternalProfiles(result.getActiveExternalProfiles());
                String id = getRootModelId();
                tmp.addModelId(id);
                tmp.setRawModel(id, getRootModel());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemCollectorTest.java

            assertNotNull(collector.getProblems());
            assertEquals(0, collector.getProblems().size());
    
            collector.add(null, "MESSAGE1", -1, -1, null);
    
            Exception e2 = new Exception();
            collector.add(Severity.WARNING, null, 42, 127, e2);
    
            assertEquals(2, collector.getProblems().size());
    
            Problem p1 = collector.getProblems().get(0);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java

                return new DefaultToolchainsBuildingResult(
                        new PersistedToolchains(result.getEffectiveToolchains()), convert(result.getProblems()));
            } catch (ToolchainsBuilderException e) {
                throw new ToolchainsBuildingException(convert(e.getProblems()));
            }
        }
    
        private Source convert(org.apache.maven.building.Source source) {
            if (source instanceof FileSource fs) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java

        public static <T> Result<T> error(Result<?> result) {
            return error(result.getProblems());
        }
    
        public static <T> Result<T> error(Result<?>... results) {
            final List<ModelProblem> problemsList = new ArrayList<>();
    
            for (Result<?> result1 : results) {
                for (ModelProblem modelProblem : result1.getProblems()) {
                    problemsList.add(modelProblem);
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/SettingsBuildingException.java

    /**
     * Signals one ore more errors during settings building. The settings builder tries to collect as many problems as
     * possible before eventually failing to provide callers with rich error information. Use {@link #getProblems()} to
     * query the details of the failure.
     *
     * @deprecated since 4.0.0, use {@link org.apache.maven.api.services.SettingsBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java

            problemCollector.add(Problem.Severity.ERROR, "MESSAGE", 3, 5, new Exception());
            ToolchainsBuildingException e = new ToolchainsBuildingException(problemCollector.getProblems());
            assertEquals(
                    "1 problem was encountered while building the effective toolchains" + LS
                            + "[ERROR] MESSAGE @ line 3, column 5" + LS,
                    e.getMessage());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java

            ProblemCollector collector2 = ProblemCollectorFactory.newInstance(Collections.singletonList(problem));
    
            assertNotSame(collector1, collector2);
            assertEquals(0, collector1.getProblems().size());
            assertEquals(1, collector2.getProblems().size());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderException.java

         *
         * @return The problems that caused this exception, never {@code null}.
         */
        public List<ModelProblem> getProblems() {
            if (result == null) {
                return Collections.emptyList();
            }
            return Collections.unmodifiableList(result.getProblems());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 02 21:26:05 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top