- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for newProperty (0.12 sec)
-
subprojects/core/src/test/groovy/org/gradle/groovy/scripts/DefaultScriptTest.groovy
getName() // call a project method assert hasProperty('custom') repositories { } def scriptMethod() { 'scriptMethod' } String internalProp = 'a' assert internalProp == 'a' ext.newProperty = 'a' assert newProperty == 'a' assert newProperty == project.newProperty ''' }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 19 14:14:29 UTC 2022 - 2.6K bytes - Viewed (0) -
platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/AbstractPluginValidationIntegrationSpec.groovy
public class MyTask extends DefaultTask { private final Property<String> newProperty = getProject().getObjects().property(String.class).convention("value"); @Input @ReplacedBy("newProperty") public String getOldProperty() { return newProperty.get(); } public void setOldProperty(String oldProperty) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 09:03:53 UTC 2024 - 40.7K bytes - Viewed (0) -
platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/AbstractJavaCompileAvoidanceIntegrationSpec.groovy
// Add new property, breaks API. file("a/src/main/${language.name}/Foo.${language.name}").delete() file("a/src/main/${language.name}/Foo.${language.name}") << ''' record Foo(String property, int newProperty) { public String property() { return property + "!"; } } ''' succeeds ":b:${language.compileTaskName}" then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 12:15:28 UTC 2023 - 14.6K bytes - Viewed (0)