- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for fromName (0.15 sec)
-
platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/modifiers/BuildInitBuildScriptDslTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 13:47:19 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/PropertyAccessorTypeTest.groovy
def "deviant bean properties are considered as such by Gradle"() { expect: PropertyAccessorType.fromName('gettingStarted') == PropertyAccessorType.GET_GETTER PropertyAccessorType.of(DeviantBean.class.getMethod("gettingStarted")) == PropertyAccessorType.GET_GETTER PropertyAccessorType.fromName('getccCompiler') == PropertyAccessorType.GET_GETTER
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 10.8K bytes - Viewed (0) -
testing/architecture-test/src/test/java/org/gradle/architecture/test/ProviderMigrationArchitectureTest.java
private static boolean hasSetter(JavaMethod input) { PropertyAccessorType accessorType = PropertyAccessorType.fromName(input.getName()); String propertyNameFromGetter = accessorType.propertyNameFor(input.getName()); return input.getOwner().getAllMethods().stream() .filter(method -> PropertyAccessorType.fromName(method.getName()) == PropertyAccessorType.SETTER)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 8.1K bytes - Viewed (0) -
platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/modifiers/BuildInitDsl.java
GROOVY(".gradle"); private final String fileExtension; BuildInitDsl(String fileExtension) { this.fileExtension = fileExtension; } public static BuildInitDsl fromName(@Nullable String name) { if (name == null) { return KOTLIN; } for (BuildInitDsl language : values()) { if (language.getId().equals(name)) { return language;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 13:47:19 UTC 2023 - 2.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/PropertyAccessorType.java
* @return true if Groovy 3 is bundled, false otherwise */ private static boolean isGroovy3() { return GroovySystem.getVersion().startsWith("3."); } public static PropertyAccessorType fromName(String methodName) { if (isGetGetterName(methodName)) { return GET_GETTER; } if (isIsGetterName(methodName)) { return IS_GETTER; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.7K bytes - Viewed (0) -
testing/architecture-test/src/test/java/org/gradle/architecture/test/KotlinCompatibilityTest.java
private final boolean isGetter; @Nullable public static Accessor from(JavaMethod method) { PropertyAccessorType propertyAccessorType = PropertyAccessorType.fromName(method.getName()); if (propertyAccessorType != null && (KotlinCompatibilityTest.isGetter(method, propertyAccessorType) || KotlinCompatibilityTest.isSetter(method, propertyAccessorType))) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/initialization/MixInLegacyTypesClassLoader.java
} if (((access & Opcodes.ACC_PUBLIC) > 0) && !isStatic(access) && Type.getMethodDescriptor(Type.BOOLEAN_TYPE).equals(desc)) { PropertyAccessorType accessorType = PropertyAccessorType.fromName(name); if (accessorType != null) { String propertyName = accessorType.propertyNameFor(name); if (accessorType == PropertyAccessorType.IS_GETTER) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 22 14:04:39 UTC 2024 - 17K bytes - Viewed (0) -
platforms/software/build-init/src/main/java/org/gradle/buildinit/tasks/InitBuild.java
if (isNullOrEmpty(this.dsl)) { dsl = userQuestions.selectOption("Select build script DSL", initializer.getDsls(), initializer.getDefaultDsl()); } else { dsl = BuildInitDsl.fromName(getDsl()); if (!initializer.getDsls().contains(dsl)) { throw new GradleException("The requested DSL '" + getDsl() + "' is not supported for '" + initializer.getId() + "' build type"); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 10 12:58:10 UTC 2024 - 24.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/DefaultStructBindingsStore.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 29.7K bytes - Viewed (0) -
pilot/pkg/model/conversion_test.go
t.Error("should produce an error") } gotFromYAML, err := crd.FromYAML(destinationRuleSchema, wantYAML) if err != nil { t.Errorf("FromYAML failed: %v", err) } if !reflect.DeepEqual(gotFromYAML, msg) { t.Errorf("FromYAML failed: got %+v want %+v", spew.Sdump(gotFromYAML), spew.Sdump(msg)) } if _, err = crd.FromYAML(destinationRuleSchema, ":"); err == nil { t.Errorf("should produce an error") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 02 20:50:14 UTC 2023 - 5.1K bytes - Viewed (0)