From 225ee4880bda2a45f124dc318e75270af80cafff Mon Sep 17 00:00:00 2001 From: Khalid Shakir Date: Fri, 14 Feb 2014 15:57:21 +0800 Subject: [PATCH] Using new parameters via skashin to run gatkdocs in the maven conventional subdirectory. Updated path for output gatkdocs in nightly build script. Removed patch in plugin manager that contained a workaround for gatkdocs running in the top level directory. --- pom.xml | 14 +------------- .../sting/utils/classloader/PluginManager.java | 11 ----------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/pom.xml b/pom.xml index 6b3703c89..9d15a0ef2 100644 --- a/pom.xml +++ b/pom.xml @@ -754,19 +754,7 @@ false true private - - ../.. - -build-timestamp "${maven.build.timestamp}" -absolute-version ${build.version} ${gatkdocs.include.hidden} - - false + -build-timestamp "${maven.build.timestamp}" -absolute-version ${build.version} ${gatkdocs.include.hidden} -settings-dir ${sting.basedir}/settings/helpTemplates -destination-dir ${project.build.directory}/gatkdocs diff --git a/public/gatk-framework/src/main/java/org/broadinstitute/sting/utils/classloader/PluginManager.java b/public/gatk-framework/src/main/java/org/broadinstitute/sting/utils/classloader/PluginManager.java index de071fa7b..38bd9bdcc 100644 --- a/public/gatk-framework/src/main/java/org/broadinstitute/sting/utils/classloader/PluginManager.java +++ b/public/gatk-framework/src/main/java/org/broadinstitute/sting/utils/classloader/PluginManager.java @@ -154,17 +154,6 @@ public class PluginManager { @SuppressWarnings("unchecked") Set> allTypes = reflections.getSubTypesOf(pluginType); for( Class type: allTypes ) { - // Depending on the root directories/URLs fed to org.reflections, the scanner may pick up classes that are - // NOT actually in the classpath. When this happens, Class.forName() returns null, and the allTypes ends up - // containing null elements. - // This happens for example when the gatkdocs generator is invoked from the root of the source tree. - // In this case, ignore the null types, as they were most likely NOT supposed to be scanned, and continue. - // TODO: Fix location that the GATKDocs scans, since it currently runs from the source code root, due to - // TODO: hardcoded paths! - - if (type == null) - continue; - // The plugin manager does not support anonymous classes; to be a plugin, a class must have a name. if(JVMUtils.isAnonymous(type)) continue;