Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 233 for asNode (0.2 sec)

  1. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishPomCustomizationKotlinDslIntegTest.groovy

                                    "prop.with.dots" to "anotherValue"
                                ))
                                withXml {
                                    val dependency = asNode().appendNode("dependencies").appendNode("dependency")
                                    dependency.appendNode("groupId", "junit")
                                    dependency.appendNode("artifactId", "junit")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  2. platforms/software/ivy/src/test/groovy/org/gradle/api/publish/ivy/internal/publisher/ValidatingIvyPublisherTest.groovy

            when:
            def descriptor = ivyDescriptor()
            descriptor.withXml(new Action<XmlProvider>() {
                void execute(XmlProvider t) {
                    t.asNode().info[0].appendNode("extends", ["organisation": "parent-org", "module": "parent-module", "revision": "parent-revision"])
                }
            })
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 15K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/xml/XmlTransformer.java

                    node = null;
                    element = null;
                }
                return builder;
            }
    
            @Override
            public Node asNode() {
                if (node == null) {
                    try {
                        node = new XmlParser().parseText(toString());
                    } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 15 08:15:53 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/EclipseWtpComponent.java

     * }
     *
     * eclipse {
     *
     *   wtp {
     *     component {
     *       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')
     *         }
     *
     *         //closure executed after wtp component file content is loaded from existing file
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  5. platforms/ide/ide-plugins/src/main/java/org/gradle/plugins/ide/idea/model/IdeaProject.java

     *     id 'java'
     *     id 'idea'
     * }
     *
     * idea {
     *   project {
     *     ipr {
     *       //you can tinker with the output *.ipr file before it's written out
     *       withXml {
     *         def node = it.asNode()
     *         node.appendNode('iLove', 'tinkering with the output *.ipr file!')
     *       }
     *
     *       //closure executed after *.ipr content is loaded from existing file
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 12 14:00:13 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseProjectIntegrationTest.groovy

        linkedResource name: 'linkToFolderFoo', type: 'aFolderFoo', location: '/test/folders/foo'
        linkedResource name: 'linkToUriFoo', type: 'aFooUri', locationUri: 'http://test/uri/foo'
    
        file {
          withXml { it.asNode().appendNode('motto', 'Stay happy!') }
        }
      }
    
      jdt {
        sourceCompatibility = 1.4
        targetCompatibility = 1.3
      }
    }
            """
            when:
            run("eclipse")
            then:
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 18K bytes
    - Viewed (0)
  7. platforms/jvm/ear/src/main/java/org/gradle/plugins/ear/descriptor/internal/DefaultDeploymentDescriptor.java

                            withXml(new Action<XmlProvider>() {
                                @Override
                                public void execute(XmlProvider xmlProvider) {
                                    xmlProvider.asNode().append(child);
                                }
                            });
                            break;
                    }
                }
            } catch (IOException ex) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 19 22:06:51 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/EclipseClasspath.java

     *     id 'eclipse'
     * }
     *
     * eclipse {
     *   classpath {
     *     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')
     *       }
     *
     *       //closure executed after .classpath content is loaded from existing file
     *       //but before gradle build information is merged
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  9. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/EclipseProject.java

     *     id 'eclipse'
     * }
     *
     * eclipse {
     *   project {
     *
     *     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')
     *       }
     *
     *       //closure executed after .project content is loaded from existing file
     *       //but before gradle build information is merged
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyDescriptorModuleExcludeResolveIntegrationTest.groovy

            if (!excludeAttributes.containsKey("matcher")) {
                excludeAttributes.put("matcher", "exact")
            }
            module.withXml {
                asNode().dependencies[0].appendNode(EXCLUDE_ATTRIBUTE, excludeAttributes)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 15.5K bytes
    - Viewed (0)
Back to top