return;
Set<PackageRef> packages = Create.set();
for (TypeRef typeRef : getClassspace().keySet()) {
PackageRef packageRef = typeRef.getPackageRef();
String sourcePath = typeRef.getSourcePath();
String packagePath = packageRef.getPath();
boolean found = false;
String[] fixed = {
"packageinfo", "package.html", "module-info.java", "package-info.java"
};
for (Iterator<File> i = getSourcePath().iterator(); i.hasNext();) {
File root = i.next();
// TODO should use bcp?
File f = getFile(root, sourcePath);
if (f.exists()) {
found = true;
if (!packages.contains(packageRef)) {
packages.add(packageRef);
File bdir = getFile(root, packagePath);
for (int j = 0; j < fixed.length; j++) {
File ff = getFile(bdir, fixed[j]);
if (ff.isFile()) {
String name = "OSGI-OPT/src/" + packagePath + "/" + fixed[j];
dot.putResource(name, new FileResource(ff));
}
}
}
if (packageRef.isDefaultPackage())
System.err.println("Duh?");
dot.putResource("OSGI-OPT/src/" + sourcePath, new FileResource(f));
}
}
if (!found) {