File f = new File(name); String lc = name.toLowerCase(); if (lc.endsWith(".jar") || lc.endsWith(".zip")) { if (!f.isFile()) { MessageUtil.info(handler, "zipfile classpath entry does not exist: " + name); continue; } try { entries.add(new ZipFileEntry(f)); } catch (IOException ioe) { MessageUtil.warn(handler, "zipfile classpath entry is invalid: " + name + "<" + ioe.getMessage() + ">"); continue; } } else { if (!f.isDirectory()) { MessageUtil.info(handler, "directory classpath entry does not exist: " + name); continue; } entries.add(new DirEntry(f)); }
addPath(name, handler);
	public ClassPathManager(List classpath, IMessageHandler handler) {		entries = new ArrayList();		for (Iterator i = classpath.iterator(); i.hasNext();) {			String name = (String) i.next();			File f = new File(name);			String lc = name.toLowerCase();			if (lc.endsWith(".jar") || lc.endsWith(".zip")) {				if (!f.isFile()) {					MessageUtil.info(handler, "zipfile classpath entry does not exist: " + name);					continue;				}				try {					entries.add(new ZipFileEntry(f));				} catch (IOException ioe) {					MessageUtil.warn(handler, "zipfile classpath entry is invalid: " + name + "<" + ioe.getMessage() + ">");					continue;				}			} else {				if (!f.isDirectory()) {					MessageUtil.info(handler, "directory classpath entry does not exist: " + name);					continue;				}				entries.add(new DirEntry(f));			}		}	}