Help improve support for builds with no <source path='' />

This commit is contained in:
Joshua Granick
2015-12-28 18:23:46 -08:00
parent b0942baa9b
commit 48334337b8

View File

@@ -1299,7 +1299,7 @@ class CommandLineTools {
}
if (project == null || (command != "rebuild" && project.sources.length == 0)) {
if (project == null || (command != "rebuild" && project.sources.length == 0 && !FileSystem.exists (project.app.main + ".hx"))) {
LogHelper.error ("You must have a \"project.xml\" file or specify another valid project file when using the '" + command + "' command");
return null;