- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 49 for setProblems (0.09 sec)
-
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) -
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) -
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) -
compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java
ToolchainsBuildingResult result = toolchainBuilder.build(request); assertNotNull(result.getEffectiveToolchains()); assertNotNull(result.getProblems()); assertEquals(0, result.getProblems().size()); } @Test void testBuildRequestWithUserToolchains() throws Exception { Properties props = new Properties(); props.put("key", "user_value");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 14.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java
.findFirst() .get(); assertEquals("0.3", dep.getVersion()); assertEquals(1, result.getProblems().size()); ModelProblem problem = result.getProblems().get(0); assertTrue(problem.toString().contains("Ignored POM import")); } /** * This test has
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 16.9K bytes - Viewed (0)