- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for toXml (0.03 sec)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtilsTest.java
assertNotNull(pluginManagementElement, "Should create pluginManagement element"); // Verify it was added to the document String xmlOutput = DomUtils.toXml(doc); assertTrue(xmlOutput.contains("<pluginManagement>"), "Should contain pluginManagement element"); } @Test void testInsertContentElement() throws Exception { String pomXml = """
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 31.3K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java
props.put("lombok.version", "1.18.6"); props.put("junit.version", "4.12"); Model model = Model.newBuilder(true).properties(props).build(); String xml = toXml(model); for (int i = 0; i < 10; i++) { String newStr = toXml(fromXml(xml)); assertEquals(newStr, xml); } } @Test void testNamespaceInXmlNode() throws XMLStreamException {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java
try { return toXml(configuration, evaluator); } catch (ExpressionEvaluationException e) { throw new ComponentConfigurationException("Unable to convert configuration to xml node", e); } } XmlNode toXml(PlexusConfiguration config, ExpressionEvaluator evaluator) throws ExpressionEvaluationException {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 8.3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtils.java
* * @param document the domtrip Document * @return the XML string with preserved formatting * */ public static String toXml(Document document) { Editor editor = new Editor(document); return editor.toXml(); } /** * Removes an element from its parent. * * @param element the element to remove * */Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 7.4K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
UpgradeContext context = createMockContext(); strategy.doApply(context, pomMap); // Convert to string to check formatting String result = DomUtils.toXml(document); // Check that the plugin version was upgraded assertTrue(result.contains("<version>3.2</version>"), "Plugin version should be upgraded to 3.2");Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 27.8K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java
Path pomPath = entry.getKey(); Document document = entry.getValue(); try { // Use domtrip for perfect formatting preservation String xmlContent = DomUtils.toXml(document); Files.writeString(pomPath, xmlContent); context.detail("Saved: " + pomPath); } catch (Exception e) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 12.5K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java
* Writes a Document to a file using the same format as the existing codebase. */ private void writePomToFile(Document document, Path filePath) throws Exception { Files.writeString(filePath, document.toXml()); } /** * Analyzes plugins using effective models built from the temp directory. * Returns a map of POM path to the set of plugin keys that need management. */Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 37K bytes - Viewed (0) -
gradle/libs.versions.toml
renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 1766181950 -0500
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 19 22:05:50 UTC 2025 - 8.5K bytes - Viewed (0) -
buildSrc/settings.gradle.kts
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Sep 21 06:22:22 UTC 2025 - 174 bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.32.md
- github.com/oklog/ulid: [v1.3.1](https://github.com/oklog/ulid/tree/v1.3.1) - github.com/pascaldekloe/goe: [57f6aae](https://github.com/pascaldekloe/goe/tree/57f6aae) - github.com/pelletier/go-toml: [v1.2.0](https://github.com/pelletier/go-toml/tree/v1.2.0) - github.com/posener/complete: [v1.1.1](https://github.com/posener/complete/tree/v1.1.1) - github.com/prometheus/tsdb: [v0.7.1](https://github.com/prometheus/tsdb/tree/v0.7.1)
Registered: Fri Dec 26 09:05:12 UTC 2025 - Last Modified: Tue Dec 16 18:27:41 UTC 2025 - 448.1K bytes - Viewed (0)