Cleaned up the isGATKLite check
This commit is contained in:
parent
62c5228048
commit
3a64398d07
|
|
@ -27,8 +27,8 @@ package org.broadinstitute.sting.utils;
|
||||||
|
|
||||||
import org.broadinstitute.sting.utils.classloader.ProtectedPackageSource;
|
import org.broadinstitute.sting.utils.classloader.ProtectedPackageSource;
|
||||||
|
|
||||||
public class DummyProtectedClass implements ProtectedPackageSource {
|
public class DummyProtectedWalker implements ProtectedPackageSource {
|
||||||
|
|
||||||
// THIS CLASS IS USED JUST SO THAT WE CAN TEST WHETHER WE ARE USING THE LITE OR FULL VERSION OF THE GATK
|
// THIS CLASS IS USED JUST SO THAT WE CAN TEST WHETHER WE ARE USING THE LITE OR FULL VERSION OF THE GATK
|
||||||
|
// **** DO NOT REMOVE! ****
|
||||||
}
|
}
|
||||||
|
|
@ -207,18 +207,11 @@ public class GenomeAnalysisEngine {
|
||||||
*/
|
*/
|
||||||
public boolean isGATKLite() {
|
public boolean isGATKLite() {
|
||||||
if ( isLiteVersion == null ) {
|
if ( isLiteVersion == null ) {
|
||||||
final List<Class<? extends Object>> classes = new PluginManager<Object>(Object.class).getPlugins();
|
isLiteVersion = new PluginManager<Object>(Object.class).exists(DummyProtectedWalkerName);
|
||||||
isLiteVersion = true;
|
|
||||||
for ( Class c : classes ) {
|
|
||||||
if ( c.getSimpleName().equals(DummyProtectedClassName)) {
|
|
||||||
isLiteVersion = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return isLiteVersion;
|
return isLiteVersion;
|
||||||
}
|
}
|
||||||
private static final String DummyProtectedClassName = "DummyProtectedClass";
|
private static final String DummyProtectedWalkerName = "DummyProtectedWalker";
|
||||||
private static Boolean isLiteVersion = null;
|
private static Boolean isLiteVersion = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue