Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 307 for document (0.17 seconds)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeStrategy.java

     * and reduces code duplication across strategy implementations.
     *
     * <p>Strategies work with domtrip Documents for perfect formatting preservation.
     * Subclasses can create domtrip Editors from Documents as needed:
     * <pre>
     * Editor editor = new Editor(document);
     * // ... perform domtrip operations ...
     * // Document is automatically updated
     * </pre>
     */
    public abstract class AbstractUpgradeStrategy implements UpgradeStrategy {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtilsTest.java

                        <version>1.0.0</version>
                    </project>
                    """;
    
                Document document = Document.of(pomXml);
                ModelVersionUtils.updateModelVersion(document, targetVersion);
                Element root = document.root();
                Element modelVersionElement = root.child("modelVersion").orElse(null);
                assertNotNull(modelVersionElement);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 19.6K bytes
    - Click Count (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocConverter.java

        private final Document document;
        private final JavadocLinkConverter linkConverter;
    
        public JavadocConverter(Document document, JavadocLinkConverter linkConverter) {
            this.document = document;
            this.linkConverter = linkConverter;
        }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed May 21 06:20:45 GMT 2025
    - 29.3K bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/GAVUtilsTest.java

                        <artifactId>child-project</artifactId>
                    </project>
                    """;
    
                Document parentDoc = Document.of(parentPomXml);
                Document childDoc = Document.of(childPomXml);
    
                Map<Path, Document> pomMap = new HashMap<>();
                pomMap.put(Paths.get("/project/pom.xml"), parentDoc);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/LinkRenderer.java

        private final String javaVersion;
    
        public LinkRenderer(Document document, DslDocModel model, String groovyVersion, String javaVersion) {
            this.document = document;
            this.model = model;
            this.groovyVersion = groovyVersion;
            this.javaVersion = javaVersion;
            primitiveTypes.add("boolean");
            primitiveTypes.add("byte");
            primitiveTypes.add("short");
            primitiveTypes.add("int");
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed May 21 06:20:45 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java

                    </project>
                    """;
    
                Document document = Document.of(pomXml);
                Map<Path, Document> pomMap = Map.of(Paths.get("pom.xml"), document);
    
                UpgradeContext context = createMockContext();
                strategy.doApply(context, pomMap);
    
                // Verify the structure
                Editor editor = new Editor(document);
                Element root = editor.root();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 27.8K bytes
    - Click Count (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java

                        </dependencies>
                    </project>
                    """;
    
                Document parentDoc = Document.of(parentPomXml);
                Document moduleADoc = Document.of(moduleAPomXml);
                Document moduleBDoc = Document.of(moduleBPomXml);
    
                Map<Path, Document> pomMap = new HashMap<>();
                pomMap.put(Paths.get("project", "pom.xml"), parentDoc);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 35.2K bytes
    - Click Count (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java

                UpgradeContext context = createMockContext();
                Map<Path, Document> pomMap = Map.of(
                        Paths.get("pom.xml"), mock(Document.class),
                        Paths.get("module/pom.xml"), mock(Document.class));
    
                // Mock strategies with different results
                when(mockStrategies.get(0).isApplicable(context)).thenReturn(true);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/UserGuideTransformTask.groovy

            use(BuildableDOMCategory) {
                addVersionInfo(provider.document)
                transformApiLinks(provider.document)
                transformWebsiteLinks(provider.document)
                fixProgramListings(provider.document)
            }
    
            provider.write(destFile.get().asFile)
        }
    
        def addVersionInfo(Document doc) {
            Element releaseInfo = doc.createElement('releaseinfo')
    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)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtils.java

         * This is used during inference when the model version can be inferred.
         *
         * @param document the XML document
         * @return true if the element was removed, false if it didn't exist
         */
        public static boolean removeModelVersion(Document document) {
            Element root = document.root();
            if (root == null) {
                return false;
            }
    
    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)
Back to Top