Set parent in MultiFileRepository child repositories, otherwise order is lost in Application.addRepository()
This commit is contained in:
parent
0ecfcd0fba
commit
8f4bfdd54b
2 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ public class FileRepository extends AbstractRepository {
|
|||
* @return true if the repository is to be considered a top-level script repository
|
||||
*/
|
||||
public boolean isScriptRoot() {
|
||||
return parent == null;
|
||||
return parent == null || parent instanceof MultiFileRepository;
|
||||
}
|
||||
|
||||
public long lastModified() {
|
||||
|
|
|
@ -73,7 +73,7 @@ public class MultiFileRepository extends FileRepository {
|
|||
// while resources (files) are ignored.
|
||||
if (list[i].isDirectory()) {
|
||||
// a nested directory aka child file repository
|
||||
newRepositories.add(new FileRepository(list[i], null));
|
||||
newRepositories.add(new FileRepository(list[i], this));
|
||||
} else if (list[i].getName().endsWith(".zip")) {
|
||||
// a nested zip repository
|
||||
newRepositories.add(new ZipRepository(list[i], this));
|
||||
|
|
Loading…
Add table
Reference in a new issue