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);
            }
        }
        private void loadGroovyTasksFromClass(java.lang.Class clazz, java.io.File file)
        {
            java.lang.reflect.Method[] methods = GroovyUtil.getMethodsAnnotatedWith(clazz, "com.agilex.ci.cifactory.nant.task");

            foreach (java.lang.reflect.Method method in methods)
            {
                string[]          args    = GroovyUtil.extractTaskArgumentNames(method.getName(), new StreamReader(file.getAbsolutePath()).ReadToEnd());
                GroovyTaskBuilder builder = new GroovyTaskBuilder(method.getName(), clazz, method, args);
                TypeFactory.TaskBuilders.Add(builder);
            }
        }