Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 233 for asNode (0.18 sec)

  1. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioIncrementalIntegrationTest.groovy

            when:
            buildFile.text = buildFile.text.replace "projectFile.withXml { }", """
                        projectFile.withXml { xml ->
                            Node globals = xml.asNode().PropertyGroup.find({it.'@Label' == 'Globals'}) as Node
                            globals.appendNode("ExtraInfo", "Some extra info")
                            globals.appendNode("ProjectName", project.name)
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  2. platforms/software/maven/src/test/groovy/org/gradle/api/publish/maven/internal/publisher/ValidatingMavenPublisherTest.groovy

            def pomFile = createPomFile(makeProjectIdentity("group", "artifact", "version"), new Action<XmlProvider>() {
                void execute(XmlProvider xml) {
                    xml.asNode().appendNode("parent")
                }
            })
            def publication = new MavenNormalizedPublication("pub-name", projectIdentity, "pom", pomFile, null, emptySet())
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 12K bytes
    - Viewed (0)
  3. 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)
  4. platforms/software/ivy/src/test/groovy/org/gradle/api/publish/ivy/internal/publisher/IvyDescriptorFileGeneratorTest.groovy

            when:
            descriptor.withXml(new Action<XmlProvider>() {
                void execute(XmlProvider t) {
                    t.asNode().info[0].@revision = "3"
                }
            })
            descriptor.withXml(new Action<XmlProvider>() {
                void execute(XmlProvider t) {
                    t.asNode().info[0].appendNode("description", "custom-description-ぴ₦ガき∆ç√∫")
                }
            })
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseWtpModelIntegrationTest.groovy

              assert it.deployName == 'coolDeployName'
            }
            whenMerged {
              hooks << 'whenMerged'
              it.deployName = 'betterDeployName'
            }
            withXml { it.asNode().appendNode('be', 'cool') }
          }
        }
      }
    }
    
    eclipseWtpComponent.doLast() {
      assert hooks == ['beforeMerged', 'whenMerged']
    }
    
            """
    
            //when
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 16.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