Commit f2afa90f authored by Jesper Öqvist's avatar Jesper Öqvist
Browse files

Fixed error in resolving directory for default package

parent 8c5034c6
......@@ -160,8 +160,11 @@ aspect PathPart {
File pkgFolder = new File(folder, folderName);
Collection<String> fileSet = Collections.emptyList();
try {
// Make sure that there exists a directory with the same name
// (case-sensitive) as the requested package
File canonical = pkgFolder.getCanonicalFile();
if (canonical.isDirectory() && canonical.getName().equals(name)) {
if (canonical.isDirectory() && (packageName.isEmpty() ||
canonical.getName().equals(name))) {
String[] files = canonical.list();
if (files.length > 0) {
fileSet = new HashSet<String>();
......@@ -197,6 +200,11 @@ aspect PathPart {
}
return false;
}
@Override
public String toString() {
return folder.toString();
}
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment