Path path = new Path(pathName);
list.add(JavaCore.newLibraryEntry(
path, sourcePath(path), null, null, attributes(path), false));
if (path.toFile().isDirectory()){
listFiles(path.toFile(), new FileFilter(){
public boolean accept(File file) {
if (file.getName().endsWith(".jar")){
list.add(JavaCore.newLibraryEntry(
new Path(file.getPath()),
null, null, null, null, false));