Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for textContentTrimmed (0.37 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java

                Editor editor = new Editor(document);
                Element root = editor.root();
                String version = root.path("build", "plugins", "plugin", "version")
                        .map(Element::textContentTrimmed)
                        .orElse(null);
    
                // The exact version depends on the plugin upgrades configuration
                assertNotNull(version, "Plugin should have a version");
            }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtilsTest.java

                Element root = document.root();
                Element modelVersionElement = root.child("modelVersion").orElse(null);
                assertEquals(targetVersion, modelVersionElement.textContentTrimmed());
            }
    
            @ParameterizedTest(name = "to target version {0}")
            @ValueSource(strings = {"4.1.0", "4.2.0"})
            @DisplayName("should add model version when missing")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PomDiscovery.java

            // Process each module
            List<Element> moduleElements = modulesElement.children(MODULE).toList();
            for (Element moduleElement : moduleElements) {
                String moduleName = moduleElement.textContentTrimmed();
                if (moduleName.isEmpty()) {
                    continue;
                }
    
                Path moduleDirectory = baseDirectory.resolve(moduleName);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtils.java

     * String version = parent.child("version")
     *     .map(Element::textContent)
     *     .orElse(null);
     *
     * // Get trimmed text content
     * String trimmedVersion = parent.child("version")
     *     .map(Element::textContentTrimmed)
     *     .orElse(null);
     *
     * // Set text content (fluent API)
     * element.textContent("4.0.0");
     * }</pre>
     *
     * <h2>When to Use DomUtils</h2>
     * <p>Use DomUtils methods when you need:
     * <ul>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtils.java

            // First try to get from modelVersion element
            Element modelVersionElement = root.child(MODEL_VERSION).orElse(null);
            if (modelVersionElement != null) {
                String modelVersion = modelVersionElement.textContentTrimmed();
                if (!modelVersion.isEmpty()) {
                    return modelVersion;
                }
            }
    
            // Fallback to namespace URI detection
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

            String currentVersion;
            boolean isProperty = false;
            String propertyName = null;
    
            if (versionElement != null) {
                currentVersion = versionElement.textContentTrimmed();
                // Check if version is a property reference
                if (currentVersion.startsWith("${") && currentVersion.endsWith("}")) {
                    isProperty = true;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 37K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategy.java

            if (parentDir == null) {
                return false;
            }
    
            // Get declared subprojects
            Set<String> declaredSubprojects = subprojectElements.stream()
                    .map(Element::textContentTrimmed)
                    .filter(name -> !name.isEmpty())
                    .collect(Collectors.toSet());
    
            // Get list of actual direct child directories with pom.xml
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java

                    assertNotNull(modelVersionElement, "Model version should exist: " + description);
                    assertEquals(
                            expectedModelVersion,
                            modelVersionElement.textContentTrimmed(),
                            "Model version should be correct: " + description);
                }
            }
    
            private static Stream<Arguments> provideUpgradeScenarios() {
                return Stream.of(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 38.8K bytes
    - Viewed (0)
Back to top