String flag = SystemInstance.get().getProperty("openejb.deployments.classpath", "true").toLowerCase();
boolean searchClassPath = flag.equals("true");
//// getOption ///////////////////////////////// END ////////////////////
if (searchClassPath) {
Deployments deployment = JaxbOpenejb.createDeployments();
deployment.setClasspath(Thread.currentThread().getContextClassLoader());
deployments.add(deployment);
}
// resolve jar locations ////////////////////////////////////// BEGIN ///////
FileUtils base = SystemInstance.get().getBase();
List<String> jarList = new ArrayList<String>(deployments.size());
try {
for (Deployments deployment : deployments) {
if (deployment.getClasspath() != null) {
loadFromClasspath(base, jarList, deployment.getClasspath());
} else {
loadFrom(deployment, base, jarList);
}
}
} catch (SecurityException ignored) {