flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-utilities] [refs/heads/develop] - fix ant_on_air on Windows
Date Fri, 10 Jan 2014 01:07:42 GMT
Updated Branches:
  refs/heads/develop ff8901eb0 -> 1b8655c04


fix ant_on_air on Windows


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

Branch: refs/heads/develop
Commit: 1b8655c048163ece985f608c8df21d7527a160cb
Parents: ff8901e
Author: Alex Harui <aharui@apache.org>
Authored: Fri Jan 10 00:46:14 2014 +0000
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Jan 10 00:46:14 2014 +0000

----------------------------------------------------------------------
 ant_on_air/src/org/apache/flex/ant/tags/Checksum.as | 1 +
 ant_on_air/src/org/apache/flex/ant/tags/Matches.as  | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/1b8655c0/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as b/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as
index b0b1399..9827af7 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as
@@ -112,6 +112,7 @@ package org.apache.flex.ant.tags
         {
             if (fs.bytesAvailable == 0)
             {
+				fs.close();
                 sumComplete();
                 return;
             }

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/1b8655c0/ant_on_air/src/org/apache/flex/ant/tags/Matches.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Matches.as b/ant_on_air/src/org/apache/flex/ant/tags/Matches.as
index 2d32984..ce38d98 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Matches.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Matches.as
@@ -50,7 +50,10 @@ package org.apache.flex.ant.tags
         public function getValue(context:Object):Object
         {
 			this.context = context;
-			var regex:RegExp = new RegExp(pattern);
+			var pat:String = pattern;
+			if (pat.indexOf(".*") == -1)
+				pat = pat.replace("*", ".*");
+			var regex:RegExp = new RegExp(pat);
 			var results:Array = string.match(regex);
 			return results && results.length > 0;
         }


Mime
View raw message