Skip to content

Commit 8fd0563

Browse files
authored
Merge pull request #8707 from sdedic/gradle/static-props-introspection
Do not introspect static properties
2 parents d328fec + f212963 commit 8fd0563

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

extide/gradle/netbeans-gradle-tooling/src/main/java/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ private String getTaskInheritance(Task t) {
307307
"shouldRunAfter",
308308
"enabled",
309309
"description",
310-
"vendor",
311-
"group"
310+
"group",
311+
"toolchainDownloadUrls" // UpdateDaemonJvm fron org.gradle.toolchains.foojay-resolver-convention accesses online sevice for URLs
312312
));
313313

314314
private void detectTaskProperties(NbProjectInfoModel model) {
@@ -718,6 +718,11 @@ private void inspectObjectAndValues0(Class clazz, Object object, String prefix,
718718
if ((mp.getModifiers() & Modifier.PUBLIC) == 0) {
719719
continue;
720720
}
721+
// ignore static properties for now. If needed, they must be exported somehow per-class and protected
722+
// against recursion.
723+
if ((mp.getModifiers() & Modifier.STATIC) != 0) {
724+
continue;
725+
}
721726
if (object != null) {
722727
// Provider must NOT be asked for a value, otherwise it might run a Task in order to compute
723728
// the value.

0 commit comments

Comments
 (0)