Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for asNode (1.29 sec)

  1. platforms/jvm/ear/src/test/groovy/org/gradle/plugins/ear/descriptor/internal/DefaultDeploymentDescriptorTest.groovy

            version | withXmlDescription | withXmlClosure
            '1.3'   | 'asNode'           | { it.asNode() }
            '1.4'   | 'asNode'           | { it.asNode() }
            '1.4'   | 'asElement'        | { it.asElement() }
            '5'     | 'asNode'           | { it.asNode() }
            '5'     | 'asElement'        | { it.asElement() }
            '6'     | 'asNode'           | { it.asNode() }
            '6'     | 'asElement'        | { it.asElement() }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 19 22:06:51 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  2. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaWorkspaceIntegrationTest.groovy

        void enablesCustomizationOfIws() {
            //when
            runIdeaTask '''
    apply plugin: "java"
    apply plugin: "idea"
    
    idea.workspace.iws.withXml { it.asNode().appendNode('foo', 'bar') }
    
    idea {
        workspace {
            iws {
                withXml {
                    it.asNode().appendNode('stay', 'happy')
                }
            }
        }
    }
    '''
    
            //then
            String content = getFile([:], "root.iws").text
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishDescriptorCustomizationIntegTest.groovy

                                extraInfo 'http://my.extra.info1', 'foo', 'fooValue'
                                extraInfo 'http://my.extra.info2', 'bar', 'barValue'
                                withXml {
                                    asNode().info[0].@resolver = 'test'
                                }
                            }
                        }
                    }
                }
            """
            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)
  4. subprojects/core-api/src/main/java/org/gradle/api/XmlProvider.java

         * to the XML. The returned instance is only valid until one of the other methods on this interface are called.
         *
         * @return A {@code Node} representation of the XML.
         */
        Node asNode();
    
        /**
         * Returns the XML document as a DOM {@link org.w3c.dom.Element}. Changes to the returned instance will be applied
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 15 16:06:48 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  5. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioFileCustomizationIntegrationTest.groovy

            when:
            buildFile << """
        model {
            visualStudio {
                projects.all { project ->
                    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: Thu Oct 05 19:36:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/ear/earCustomized/groovy/ear/build.gradle

    //      webModule("my.war", "/")  // won't deploy as my.war isn't deploy dependency
            securityRole "admin"
            securityRole "superadmin"
            withXml { provider -> // add a custom node to the XML
                provider.asNode().appendNode("data-source", "my/data/source")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/ide/eclipse/groovy/build.gradle

    eclipse.project.file.beforeMerged { project ->
        project.natures.clear()
    }
    // end::project-before-merged[]
    
    // tag::wtp-with-xml[]
    eclipse.wtp.facet.file.withXml { provider ->
        provider.asNode().fixed.find { it.@facet == 'jst.java' }.@facet = 'jst2.java'
    }
    // end::wtp-with-xml[]
    
    sourceSets {
        integTest
    }
    
    configurations {
        functional
    }
    
    eclipse {
        classpath {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. platforms/ide/ide-native/src/main/java/org/gradle/ide/visualstudio/VisualStudioProject.java

     *  }
     *
     *  model {
     *      visualStudio {
     *          projects.all {
     *              projectFile.location = "vs/${name}.vcxproj"
     *              projectFile.withXml {
     *                  asNode().appendNode('PropertyGroup', [Label: 'Custom'])
     *                          .appendNode('ProjectDetails', "Project is named ${project.name}")
     *              }
     *          }
     *      }
     *  }
     * </pre>
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/visual-studio/groovy/build.gradle

            }
        }
    }
    // end::configure-locations[]
    
    // tag::customize-project-files[]
    model {
        visualStudio {
            projects.all { project ->
                projectFile.withXml {
                    asNode().appendNode('PropertyGroup', [Label: 'Custom'])
                            .appendNode('ProjectDetails', "Project is named ${project.name}")
                }
            }
        }
    }
    // end::customize-project-files[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaProjectIntegrationTest.groovy

            modules -= project(':someProjectThatWillBeExcluded').idea.module
    
            outputFile = new File(outputFile.parentFile, 'someBetterName.ipr')
    
            ipr {
                withXml {
                    def node = it.asNode()
                    node.appendNode('someInterestingConfiguration', 'hey buddy!')
                }
            }
        }
    }
    '''
            result.assertTasksExecuted(":ideaModule", ":ideaProject", ":ideaWorkspace",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top