Updated Branches: refs/heads/develop 54c0b3bbf -> b5b21e76b
fix failure case handlng Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/f73d8693 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/f73d8693 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/f73d8693 Branch: refs/heads/develop Commit: f73d869339aa6fbae89ce115277d7110d910afb8 Parents: 54c0b3b Author: Alex Harui <[email protected]> Authored: Wed Dec 11 21:06:51 2013 -0800 Committer: Alex Harui <[email protected]> Committed: Wed Dec 11 21:06:51 2013 -0800 ---------------------------------------------------------------------- ant_on_air/src/org/apache/flex/ant/tags/Target.as | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f73d8693/ant_on_air/src/org/apache/flex/ant/tags/Target.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Target.as b/ant_on_air/src/org/apache/flex/ant/tags/Target.as index 8334c97..92b82da 100644 --- a/ant_on_air/src/org/apache/flex/ant/tags/Target.as +++ b/ant_on_air/src/org/apache/flex/ant/tags/Target.as @@ -97,17 +97,25 @@ package org.apache.flex.ant.tags processDepends(); } + private var inExecute:Boolean; + override public function execute(callbackMode:Boolean):Boolean { + inExecute = true; this.callbackMode = callbackMode; if (_depends) { dependsList = _depends.split(","); if (!processDepends()) + { + inExecute = false; return false; + } } - return continueOnToSteps(); + var ok:Boolean = continueOnToSteps(); + inExecute = false; + return ok; } private function continueOnToSteps():Boolean @@ -143,7 +151,11 @@ package org.apache.flex.ant.tags return false; } if (!Ant.project.status) + { + if (!inExecute) + dispatchEvent(new Event(Event.COMPLETE)); return true; + } if (callbackMode) { ant.functionToCall = processSteps;
