Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for setTextContent (0.07 seconds)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/UserGuideTransformTask.groovy

        }
    
        def fixProgramListings(Document doc) {
            doc.documentElement.depthFirst().findAll { it.name() == 'programlisting' || it.name() == 'screen' }.each {Element element ->
                element.setTextContent(normalise(element.getTextContent()))
            }
        }
    
        static String normalise(String content) {
            content.replace('\t', '    ').stripIndent().replace('\r\n', '\n')
        }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri May 16 07:58:02 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtils.java

            if (root == null) {
                return;
            }
    
            Element modelVersionElement = root.child(MODEL_VERSION).orElse(null);
            if (modelVersionElement != null) {
                editor.setTextContent(modelVersionElement, newVersion);
            } else {
                // Create new modelVersion element if it doesn't exist
                // domtrip will automatically handle proper positioning and formatting
    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)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java

            // Update model version element
            Element root = editor.root();
            Element modelVersionElement = root.child(MODEL_VERSION).orElse(null);
            if (modelVersionElement != null) {
                editor.setTextContent(modelVersionElement, targetModelVersion);
                context.detail("Updated modelVersion to " + targetModelVersion);
            } else {
                // Create new modelVersion element if it doesn't exist
    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)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

            } else {
                // Direct version comparison and upgrade
                if (isVersionBelow(currentVersion, upgrade.minVersion)) {
                    Editor editor = new Editor(pomDocument);
                    editor.setTextContent(versionElement, upgrade.minVersion);
                    context.detail("Upgraded " + upgrade.groupId + ":" + upgrade.artifactId + " from " + currentVersion
                            + " to " + upgrade.minVersion + " in " + sectionName);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 37K bytes
    - Click Count (0)
Back to Top