You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/06/11 02:43:10 UTC
git commit: [flex-utilities] [refs/heads/develop] - add ignoreerror
to get task
Repository: flex-utilities
Updated Branches:
refs/heads/develop ddbd01e2a -> 2936a3a4e
add ignoreerror to get task
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/2936a3a4
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/2936a3a4
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/2936a3a4
Branch: refs/heads/develop
Commit: 2936a3a4e170eb7bdb93bf6e5a286f73433c0411
Parents: ddbd01e
Author: Alex Harui <ah...@apache.org>
Authored: Tue Jun 10 17:32:46 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Jun 10 17:32:46 2014 -0700
----------------------------------------------------------------------
ant_on_air/src/org/apache/flex/ant/tags/Get.as | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2936a3a4/ant_on_air/src/org/apache/flex/ant/tags/Get.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Get.as b/ant_on_air/src/org/apache/flex/ant/tags/Get.as
index ca66d2a..3a006cc 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Get.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Get.as
@@ -67,6 +67,11 @@ package org.apache.flex.ant.tags
return getAttributeValue("@skipexisting") == "true";
}
+ private function get ignoreerrors():Boolean
+ {
+ return getAttributeValue("@ignoreerrors") == "true";
+ }
+
private var urlLoader:URLLoader;
override public function execute(callbackMode:Boolean, context:Object):Boolean
@@ -148,8 +153,11 @@ package org.apache.flex.ant.tags
private function ioErrorEventHandler(event:IOErrorEvent):void
{
ant.output(event.toString());
- ant.project.failureMessage = ant.formatOutput("get", event.toString());
- ant.project.status = false;
+ if (!ignoreerrors)
+ {
+ ant.project.failureMessage = ant.formatOutput("get", event.toString());
+ ant.project.status = false;
+ }
dispatchEvent(new Event(Event.COMPLETE));
event.preventDefault();
urlLoader = null;
@@ -158,8 +166,11 @@ package org.apache.flex.ant.tags
private function securityErrorHandler(event:SecurityErrorEvent):void
{
ant.output(event.toString());
- ant.project.failureMessage = ant.formatOutput("get", event.toString());
- ant.project.status = false;
+ if (!ignoreerrors)
+ {
+ ant.project.failureMessage = ant.formatOutput("get", event.toString());
+ ant.project.status = false;
+ }
dispatchEvent(new Event(Event.COMPLETE));
event.preventDefault();
urlLoader = null;