Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 66 for asNode (0.24 sec)

  1. platforms/software/ivy/src/test/groovy/org/gradle/api/publish/ivy/plugins/IvyPublishPluginTest.groovy

            IvyPublicationInternal publication = publishing.publications.ivy
    
            when:
            publication.descriptor {
                withXml {
                    it.asNode().@foo = "bar"
                }
            }
    
            then:
            def transformer = new XmlTransformer()
            transformer.addAction(publication.descriptor.xmlAction)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. platforms/software/ivy/src/main/java/org/gradle/api/publish/ivy/IvyModuleDescriptorSpec.java

         * plugins {
         *     id 'ivy-publish'
         * }
         *
         * publishing {
         *   publications {
         *     ivy(IvyPublication) {
         *       descriptor {
         *         withXml {
         *           asNode().dependencies.dependency.find { it.@org == "junit" }.@rev = "4.10"
         *         }
         *       }
         *     }
         *   }
         * }
         * </pre>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/idea/model/IdeaWorkspace.java

     *
     * <pre class='autoTested'>
     * plugins {
     *     id 'java'
     *     id 'idea'
     * }
     *
     * idea.workspace.iws.withXml { provider -&gt;
     *     provider.asNode().appendNode('gradleRocks', 'true')
     * }
     * </pre>
     */
    public abstract class IdeaWorkspace {
    
        private XmlFileContentMerger iws;
    
        /**
         * Enables advanced manipulation of the output XML.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/generator/XmlPersistableConfigurationObjectTest.groovy

        }
    
        def "can add transform Actions"() {
            object.loadDefaults()
            def outputFile = tmpDir.file('output.xml')
    
            when:
            object.transformAction({ xmlProvider ->
                xmlProvider.asNode().attributes().put('some', 'attribute')
            } as Action<XmlProvider>)
    
            and:
            object.store(outputFile)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/fixtures/AbstractVisualStudioIntegrationSpec.groovy

                                    relativeToRoot = "."
                                }
                                visualStudioProject.projectFile.withXml { xml ->
                                    redirectOutputForAll xml.asNode().PropertyGroup.findAll { it.'@Label' == 'NMakeConfiguration' }, relativeToRoot
                                }
                            }
                        }
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishIdentifierValidationIntegTest.groovy

                    }
                    publications {
                        maven(MavenPublication) {
                            from components.java
                            pom.withXml {
                                asNode().appendNode('description', '${sq(description)}')
                            }
                        }
                    }
                }
            """
            when:
            succeeds 'publish'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyHttpRepoResolveIntegrationTest.groovy

            given:
            def dep = server.remoteIvyRepo.module('group', 'projectA', '1.2')
            dep.withXml({
                def infoAttribs = asNode().info[0].attributes()
                infoAttribs.remove("status")
                infoAttribs.remove("publication")
            }).publish()
    
            println dep.ivyFile.text
    
            and:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishValidationIntegTest.groovy

                            descriptor.extraInfo 'http://my.extra.info2', 'bar', '${sq(extraValue)}'
                            descriptor.withXml {
                                asNode().info[0].@resolver = '${sq(resolver)}'
                            }
                        }
                    }
                }
            """
            when:
            succeeds 'publish'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. platforms/software/maven/src/main/java/org/gradle/api/publish/maven/MavenPom.java

         * plugins {
         *     id 'maven-publish'
         * }
         *
         * publishing {
         *   publications {
         *     maven(MavenPublication) {
         *       pom.withXml {
         *         asNode().appendNode('properties').appendNode('my-property', 'my-value')
         *       }
         *     }
         *   }
         * }
         * </pre>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/EclipseWtpFacet.java

     *       facet name: 'someCoolFacet', version: '1.3'
     *
     *       file {
     *         //if you want to mess with the resulting XML in whatever way you fancy
     *         withXml {
     *           def node = it.asNode()
     *           node.appendNode('xml', 'is what I love')
     *         }
     *
     *         //beforeMerged and whenMerged closures are the highest voodoo for the tricky edge cases.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top