Improve rebuild to work if there is a folder with the same name as a haxelib, which is not a build directory
This commit is contained in:
@@ -1128,6 +1128,8 @@ class RunScript {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
var haxelib = PathHelper.getHaxelib (new Haxelib (path));
|
||||||
|
|
||||||
if (FileSystem.isDirectory (path)) {
|
if (FileSystem.isDirectory (path)) {
|
||||||
|
|
||||||
path = PathHelper.combine (path, "project");
|
path = PathHelper.combine (path, "project");
|
||||||
@@ -1138,6 +1140,12 @@ class RunScript {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!FileSystem.exists (path) && haxelib != null) {
|
||||||
|
|
||||||
|
path = PathHelper.combine (haxelib, "project");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user