diff --git a/src/main/org/apache/tools/ant/IntrospectionHelper.java b/src/main/org/apache/tools/ant/IntrospectionHelper.java index 9179b7e75..d17d15f33 100644 --- a/src/main/org/apache/tools/ant/IntrospectionHelper.java +++ b/src/main/org/apache/tools/ant/IntrospectionHelper.java @@ -182,7 +182,8 @@ public final class IntrospectionHelper implements BuildListener { continue; } // not really user settable properties on tasks - if (org.apache.tools.ant.Task.class.isAssignableFrom(bean) + if (org.apache.tools.ant.ProjectComponent.class.isAssignableFrom( + bean) && args.length == 1 && isHiddenSetMethod(name, args[0])) { continue; } @@ -209,14 +210,6 @@ public final class IntrospectionHelper implements BuildListener { */ continue; } - if (org.apache.tools.ant.Location.class.equals(args[0])) { - /* - Ignore setLocation(Location) (normally from - ProjectComponent.setLocation(Location) in honour - of setLocation(Some other class) - */ - continue; - } /* If the argument is not a String or Location, and if there