Add jars to classpath without checking if they exist.

This commit is contained in:
hns 2002-11-26 17:42:30 +00:00
parent 8cbcbd82ca
commit 050438c80a

View file

@ -30,9 +30,10 @@ public class Main {
String home = null;
// first, try to get helma home dir from command line options
for (int i=0; i<args.length; i++) {
if (args[i].equals ("-h") && i+1<args.length)
if (args[i].equals ("-h") && i+1<args.length) {
home = args[i+1];
}
}
URLClassLoader apploader = (URLClassLoader) ClassLoader.getSystemClassLoader();
// try to get Helma installation directory
if (home == null) {
@ -72,7 +73,6 @@ public class Main {
ArrayList jarlist = new ArrayList ();
for (int i=0;i<jars.length;i++) {
File jar = new File (libdir, jars[i]);
if (jar.exists())
jarlist.add (new URL ("file:" + jar.getAbsolutePath()));
}
// add all jar files from the lib/ext directory