Fix watch command (resolves haxelime/hxp#23)
This commit is contained in:
@@ -243,7 +243,7 @@ class MacPlatform extends PlatformTarget
|
||||
return context;
|
||||
}
|
||||
|
||||
private function getDisplayHXML():String
|
||||
private function getDisplayHXML():HXML
|
||||
{
|
||||
var path = targetDirectory + "/haxe/" + buildType + ".hxml";
|
||||
|
||||
@@ -413,7 +413,15 @@ class MacPlatform extends PlatformTarget
|
||||
|
||||
public override function watch():Void
|
||||
{
|
||||
var dirs = []; // WatchHelper.processHXML (getDisplayHXML (), project.app.path);
|
||||
var hxml = getDisplayHXML();
|
||||
var dirs = hxml.getClassPaths(true);
|
||||
|
||||
var outputPath = Path.combine(Sys.getCwd(), project.app.path);
|
||||
dirs = dirs.filter(function(dir)
|
||||
{
|
||||
return (!Path.startsWith(dir, outputPath));
|
||||
});
|
||||
|
||||
var command = ProjectHelper.getCurrentCommand();
|
||||
System.watch(command, dirs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user