final Iterator i = jarFileNames.iterator();
s.append(i.next());
while (i.hasNext()) {
s.append(File.pathSeparator + i.next());
}
final PathResourceLocator jars
= new PathResourceLocator(out, verbose, s.toString());
//printMessage(getI18N("enhancer.metadata.using_jar_files",
// s.toString()));
locators.add(jars);
classLoader = jars.getClassLoader();
}
// create resource locator for specified source path
if (sourcePath != null && sourcePath.length() > 0) {
final PathResourceLocator path
= new PathResourceLocator(out, verbose, sourcePath);
//printMessage(getI18N("enhancer.metadata.using_source_path",
// sourcePath));
locators.add(path);
classLoader = path.getClassLoader();
}
if (classLoader == null) {
// use the current class loader as the default, if there is
// no -s option and no archives specified.