flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/7] git commit: [flex-utilities] [refs/heads/develop] - add failure message handling
Date Thu, 29 May 2014 16:07:32 GMT
add failure message handling


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/04e8f60f
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/04e8f60f
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/04e8f60f

Branch: refs/heads/develop
Commit: 04e8f60f73bab0717ba2b8474a0b05433fdbaeed
Parents: a24bd43
Author: Alex Harui <aharui@apache.org>
Authored: Thu May 29 07:47:05 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu May 29 09:05:25 2014 -0700

----------------------------------------------------------------------
 ant_on_air/src/org/apache/flex/ant/Ant.as       | 19 +++++++++++++
 .../src/org/apache/flex/ant/tags/AntTask.as     |  3 +++
 ant_on_air/src/org/apache/flex/ant/tags/Copy.as | 12 +++++++++
 .../src/org/apache/flex/ant/tags/Delete.as      |  9 +++++++
 ant_on_air/src/org/apache/flex/ant/tags/Echo.as |  3 +++
 ant_on_air/src/org/apache/flex/ant/tags/Fail.as |  3 +++
 ant_on_air/src/org/apache/flex/ant/tags/Get.as  |  8 ++++++
 .../org/apache/flex/ant/tags/LoadProperties.as  |  3 +++
 .../src/org/apache/flex/ant/tags/Mkdir.as       |  3 +++
 ant_on_air/src/org/apache/flex/ant/tags/Move.as | 12 +++++++++
 .../src/org/apache/flex/ant/tags/Project.as     | 22 +++++++++++++++
 .../src/org/apache/flex/ant/tags/Property.as    |  3 +++
 .../org/apache/flex/ant/tags/PropertyFile.as    |  3 +++
 .../src/org/apache/flex/ant/tags/Replace.as     |  3 +++
 .../src/org/apache/flex/ant/tags/Touch.as       |  7 +++--
 .../src/org/apache/flex/ant/tags/Untar.as       | 21 ++++++++++-----
 .../src/org/apache/flex/ant/tags/Unzip.as       | 28 ++++++++++++++------
 .../src/org/apache/flex/ant/tags/XmlProperty.as |  7 +++--
 .../tags/supportClasses/FileSetTaskHandler.as   |  8 ++++--
 19 files changed, 157 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/Ant.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/Ant.as b/ant_on_air/src/org/apache/flex/ant/Ant.as
index 6cc72d9..0036684 100644
--- a/ant_on_air/src/org/apache/flex/ant/Ant.as
+++ b/ant_on_air/src/org/apache/flex/ant/Ant.as
@@ -85,6 +85,7 @@ package org.apache.flex.ant
             {
                 ant.output(basedir);
                 ant.output(e.message);
+				ant.project.failureMessage = e.message;
                 ant.project.status = false;
                 return true;							
             }
@@ -97,7 +98,16 @@ package org.apache.flex.ant
                 return false;                
             }
 			if (Ant.ants.length > 1)
+			{
+				var status:Boolean = ant.project.status;
+				var failureMessage:String = ant.project.failureMessage;
 				Ant.ants.pop();
+				if (!status)
+				{
+					currentAnt.project.status = status;
+					currentAnt.project.failureMessage = failureMessage;
+				}
+			}
             return true;
         }
     
@@ -156,7 +166,16 @@ package org.apache.flex.ant
         private function completeHandler(event:Event):void
         {
 			if (Ant.ants.length > 1)
+			{
+				var status:Boolean = ant.project.status;
+				var failureMessage:String = ant.project.failureMessage;
 				Ant.ants.pop();
+				if (!status)
+				{
+					currentAnt.project.status = status;
+					currentAnt.project.failureMessage = failureMessage;
+				}
+			}
             event.target.removeEventListener(Event.COMPLETE, completeHandler);
             dispatchEvent(event);
         }

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/AntTask.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/AntTask.as b/ant_on_air/src/org/apache/flex/ant/tags/AntTask.as
index 9fc38aa..adffa9c 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/AntTask.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/AntTask.as
@@ -84,7 +84,10 @@ package org.apache.flex.ant.tags
                 ant.output(dir + File.separator + this.file);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return true;							
             }
             

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Copy.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Copy.as b/ant_on_air/src/org/apache/flex/ant/tags/Copy.as
index 655afb6..30c6141 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Copy.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Copy.as
@@ -116,7 +116,10 @@ package org.apache.flex.ant.tags
                 ant.output(srcName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return;							
             }
             
@@ -141,7 +144,10 @@ package org.apache.flex.ant.tags
                 ant.output(destName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return;							
             }
             
@@ -173,7 +179,10 @@ package org.apache.flex.ant.tags
                 ant.output(fileName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return true;							
             }
             
@@ -185,7 +194,10 @@ package org.apache.flex.ant.tags
                 ant.output(toFileName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return true;							
             }
             

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Delete.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Delete.as b/ant_on_air/src/org/apache/flex/ant/tags/Delete.as
index 2779aa6..2c4cbae 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Delete.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Delete.as
@@ -65,7 +65,10 @@ package org.apache.flex.ant.tags
                 ant.output(fileName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return;							
             }
             
@@ -93,7 +96,10 @@ package org.apache.flex.ant.tags
                     ant.output(fileName);
                     ant.output(e.message);
                     if (failonerror)
+					{
+						ant.project.failureMessage = e.message;
                         ant.project.status = false;
+					}
                     return true;							
                 }
                 
@@ -112,7 +118,10 @@ package org.apache.flex.ant.tags
                     ant.output(fileName);
                     ant.output(e.message);
                     if (failonerror)
+					{
+						ant.project.failureMessage = e.message;
                         ant.project.status = false;
+					}
                     return true;							
                 }
                 

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Echo.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Echo.as b/ant_on_air/src/org/apache/flex/ant/tags/Echo.as
index 8cd71a3..9493e2c 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Echo.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Echo.as
@@ -73,7 +73,10 @@ package org.apache.flex.ant.tags
                     ant.output(fileName);
                     ant.output(e.message);
                     if (failonerror)
+					{
+						ant.project.failureMessage = e.message;
                         ant.project.status = false;
+					}
                     return true;							
                 }
                 

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Fail.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Fail.as b/ant_on_air/src/org/apache/flex/ant/tags/Fail.as
index 319365a..6dd9b30 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Fail.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Fail.as
@@ -67,7 +67,10 @@ package org.apache.flex.ant.tags
                 }
             }
             if (text)
+			{
                 ant.output(ant.getValue(text, context));
+				ant.project.failureMessage = ant.getValue(text, context);
+			}
             ant.project.status = false;
             return true;
         }

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/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 183c1d2..bba2919 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
@@ -183,6 +183,7 @@ 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;
             dispatchEvent(new Event(Event.COMPLETE));
             event.preventDefault();
@@ -192,6 +193,7 @@ 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;
             dispatchEvent(new Event(Event.COMPLETE));
             event.preventDefault();
@@ -261,7 +263,10 @@ package org.apache.flex.ant.tags
                 ant.output(dest);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = ant.formatOutput("get", e.message);
                     ant.project.status = false;
+				}
                 return null;							
             }
             
@@ -282,7 +287,10 @@ package org.apache.flex.ant.tags
                     ant.output(fileName);
                     ant.output(e.message);
                     if (failonerror)
+					{
+						ant.project.failureMessage = ant.formatOutput("get", e.message);						
                         ant.project.status = false;
+					}
                     return null;							
                 }
                 

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/LoadProperties.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/LoadProperties.as b/ant_on_air/src/org/apache/flex/ant/tags/LoadProperties.as
index 51024a1..6db0c68 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/LoadProperties.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/LoadProperties.as
@@ -52,7 +52,10 @@ package org.apache.flex.ant.tags
                 ant.output(fileName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return true;							
             }
             

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Mkdir.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Mkdir.as b/ant_on_air/src/org/apache/flex/ant/tags/Mkdir.as
index a817a45..9ce69dc 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Mkdir.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Mkdir.as
@@ -58,7 +58,10 @@ package org.apache.flex.ant.tags
 				ant.output(_dir);
 				ant.output(e.message);
 				if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
 					ant.project.status = false;
+				}
 				return true;							
 			}
 

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Move.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Move.as b/ant_on_air/src/org/apache/flex/ant/tags/Move.as
index a4fab36..9e6a0d3 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Move.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Move.as
@@ -116,7 +116,10 @@ package org.apache.flex.ant.tags
                 ant.output(srcName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return;							
             }
             
@@ -141,7 +144,10 @@ package org.apache.flex.ant.tags
                 ant.output(destName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return;							
             }
             
@@ -173,7 +179,10 @@ package org.apache.flex.ant.tags
                 ant.output(fileName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return true;							
             }
             
@@ -194,7 +203,10 @@ package org.apache.flex.ant.tags
                 ant.output(destFileName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return true;							
             }
             

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Project.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Project.as b/ant_on_air/src/org/apache/flex/ant/tags/Project.as
index a5596ae..f7628e7 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Project.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Project.as
@@ -71,6 +71,28 @@ package org.apache.flex.ant.tags
             }
         }
         
+		private var _failureMessage:String;
+		/**
+		 *  null if tasks completed successfully.
+		 *  if status == false, then this will be
+		 *  set if a <fail> message set status to false
+		 *  or some other condition set status to false.
+		 *  
+		 */
+		public function get failureMessage():String
+		{
+			return _failureMessage;
+		}
+		
+		public function set failureMessage(value:String):void
+		{
+			if (_failureMessage != value)
+			{
+				_failureMessage = value;
+				ant.dispatchEvent(new Event("failureMessageChanged"));
+			}
+		}
+		
         public function get basedir():String
         {
             return getAttributeValue("@basedir");

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Property.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Property.as b/ant_on_air/src/org/apache/flex/ant/tags/Property.as
index 811e6b6..f8c8527 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Property.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Property.as
@@ -77,7 +77,10 @@ package org.apache.flex.ant.tags
                     ant.output(fileName);
                     ant.output(e.message);
                     if (failonerror)
+					{
+						ant.project.failureMessage = e.message;
                         ant.project.status = false;
+					}
                     return true;							
                 }
                 

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/PropertyFile.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/PropertyFile.as b/ant_on_air/src/org/apache/flex/ant/tags/PropertyFile.as
index aab0246..1d2c067 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/PropertyFile.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/PropertyFile.as
@@ -51,7 +51,10 @@ package org.apache.flex.ant.tags
                 ant.output(fileName);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return true;							
             }
             

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Replace.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Replace.as b/ant_on_air/src/org/apache/flex/ant/tags/Replace.as
index 064173a..6b32dd0 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Replace.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Replace.as
@@ -67,7 +67,10 @@ package org.apache.flex.ant.tags
                 ant.output(file);
                 ant.output(e.message);
                 if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
                     ant.project.status = false;
+				}
                 return true;							
             }
             

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Touch.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Touch.as b/ant_on_air/src/org/apache/flex/ant/tags/Touch.as
index 6d6e4a8..6982f43 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Touch.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Touch.as
@@ -52,8 +52,11 @@ package org.apache.flex.ant.tags
             {
                 ant.output(fileName);
                 ant.output(e.message);
-                if (failonerror)
-                    ant.project.status = false;
+				if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
+					ant.project.status = false;
+				}
                 return true;							
             }
             

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Untar.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Untar.as b/ant_on_air/src/org/apache/flex/ant/tags/Untar.as
index 84dd56d..92b313d 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Untar.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Untar.as
@@ -82,8 +82,11 @@ package org.apache.flex.ant.tags
             {
                 ant.output(src);
                 ant.output(e.message);
-                if (failonerror)
-                    ant.project.status = false;
+				if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
+					ant.project.status = false;
+				}
                 return true;							
             }
             
@@ -96,8 +99,11 @@ package org.apache.flex.ant.tags
             {
                 ant.output(dest);
                 ant.output(e.message);
-                if (failonerror)
-                    ant.project.status = false;
+				if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
+					ant.project.status = false;
+				}
                 return true;							
             }
             
@@ -149,8 +155,11 @@ package org.apache.flex.ant.tags
         private function unTarError(event:Event):void {
             var output:String = _process.standardError.readUTFBytes(_process.standardError.bytesAvailable);
             ant.output(output);
-            if (failonerror)
-                ant.project.status = false;
+			if (failonerror)
+			{
+				ant.project.failureMessage = output;
+				ant.project.status = false;
+			}
             dispatchEvent(new Event(Event.COMPLETE));
         }
         

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/Unzip.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Unzip.as b/ant_on_air/src/org/apache/flex/ant/tags/Unzip.as
index b0969b0..f4f385d 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Unzip.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Unzip.as
@@ -93,8 +93,11 @@ package org.apache.flex.ant.tags
             {
                 ant.output(src);
                 ant.output(e.message);
-                if (failonerror)
-                    ant.project.status = false;
+				if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
+					ant.project.status = false;
+				}
                 return true;							
             }
             
@@ -107,8 +110,11 @@ package org.apache.flex.ant.tags
             {
                 ant.output(dest);
                 ant.output(e.message);
-                if (failonerror)
-                    ant.project.status = false;
+				if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
+					ant.project.status = false;
+				}
                 return true;							
             }
             
@@ -176,8 +182,11 @@ package org.apache.flex.ant.tags
                 
             } catch (error:Error) {
 				ant.output(error.message);
-                if (failonerror)
-                    ant.project.status = false;
+				if (failonerror)
+				{
+					ant.project.failureMessage = error.message;
+					ant.project.status = false;
+				}
             }
         }
         
@@ -195,8 +204,11 @@ package org.apache.flex.ant.tags
             fzip.removeEventListener(ZipEvent.FILE_LOADED, onFileLoaded);
             fzip.removeEventListener(Event.COMPLETE, onUnzipComplete);            
             fzip.removeEventListener(ErrorEvent.ERROR, onUnzipError);
-            if (failonerror)
-                ant.project.status = false;
+			if (failonerror)
+			{
+				ant.project.failureMessage = event.toString();
+				ant.project.status = false;
+			}
         }
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/XmlProperty.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/XmlProperty.as b/ant_on_air/src/org/apache/flex/ant/tags/XmlProperty.as
index b59f004..c7c5b03 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/XmlProperty.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/XmlProperty.as
@@ -50,8 +50,11 @@ package org.apache.flex.ant.tags
             {
                 ant.output(fileName);
                 ant.output(e.message);
-                if (failonerror)
-                    ant.project.status = false;
+				if (failonerror)
+				{
+					ant.project.failureMessage = e.message;
+					ant.project.status = false;
+				}
                 return true;							
             }
             

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/04e8f60f/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/FileSetTaskHandler.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/FileSetTaskHandler.as
b/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/FileSetTaskHandler.as
index 1a36148..f3a361c 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/FileSetTaskHandler.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/FileSetTaskHandler.as
@@ -69,6 +69,7 @@ package org.apache.flex.ant.tags.supportClasses
                     {
                         if (failonerror)
                         {
+							ant.project.failureMessage = e.message;
                             ant.project.status = false;
                             return true;
                         }
@@ -109,8 +110,11 @@ package org.apache.flex.ant.tags.supportClasses
                         {
                             ant.output(fs.dir);
                             ant.output(e.message);
-                            if (failonerror)
-                                ant.project.status = false;
+							if (failonerror)
+							{
+								ant.project.failureMessage = e.message;
+								ant.project.status = false;
+							}
                             dispatchEvent(new Event(Event.COMPLETE));
                             return;							
                         }


Mime
View raw message