- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 233 for asNode (0.15 sec)
-
subprojects/core/src/test/groovy/org/gradle/internal/xml/XmlTransformerTest.groovy
then: action.execute(_) >> { XmlProvider provider -> provider.asNode().appendNode('child\u03b1') } looksLike '<root>\n <child\u03b1/>\n</root>\n', file.bytes } def "can use a closure as an action"() { transformer.addAction { provider -> provider.asNode().appendNode('child1') } StringWriter writer = new StringWriter()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 15 08:16:06 UTC 2023 - 12.7K bytes - Viewed (0) -
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) -
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) -
platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishDescriptorCustomizationIntegTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 8.3K bytes - Viewed (0) -
platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishPomCustomizationIntegTest.groovy
"prop.with.dots": "anotherValue" ] withXml { def 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 - 18.9K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)