private void loadGroovyTargetsFromClass(java.lang.Class clazz) { java.lang.reflect.Method[] methods = GroovyUtil.getMethodsAnnotatedWith(clazz, "com.agilex.ci.cifactory.nant.target"); foreach (java.lang.reflect.Method method in methods) { GroovyTarget target = new GroovyTarget(this.Project, clazz, method); target.Name = clazz.getPackage().getName() + "." + method.getName(); this.Project.Targets.Add(target); } }