- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for insertContentElement (0.08 seconds)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtilsTest.java
// Insert elements with various text content scenarios DomUtils.insertContentElement(root, "name", "Test Project Name"); DomUtils.insertContentElement(root, "description", ""); // Empty content DomUtils.insertContentElement(root, "url", null); // Null content DomUtils.insertContentElement(root, "inceptionYear", "2023"); String xmlOutput = DomUtils.toXml(doc);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 31.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtils.java
*/ public static void addGAVElements(Element parent, String groupId, String artifactId, String version) { insertContentElement(parent, GROUP_ID, groupId); insertContentElement(parent, ARTIFACT_ID, artifactId); if (version != null && !version.isEmpty()) { insertContentElement(parent, VERSION, version); } } /**Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 7.4K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtils.java
} else { // Create new modelVersion element if it doesn't exist // domtrip will automatically handle proper positioning and formatting DomUtils.insertContentElement(root, MODEL_VERSION, newVersion); } } /** * Removes the model version element from a POM editor. * This is used during inference when the model version can be inferred. *Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 9.5K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java
context.detail("Updated modelVersion to " + targetModelVersion); } else { // Create new modelVersion element if it doesn't exist DomUtils.insertContentElement(root, MODEL_VERSION, targetModelVersion); context.detail("Added modelVersion " + targetModelVersion); } // Update namespace and schema location
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 16.6K bytes - Click Count (0)