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 environment variable handling on Windows
Date Tue, 03 Dec 2013 05:01:22 GMT
Updated Branches:
  refs/heads/develop 6f763a74b -> 2cc92bf16


Fix environment variable handling 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/2cc92bf1
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/2cc92bf1
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/2cc92bf1

Branch: refs/heads/develop
Commit: 2cc92bf1692fad0621e3460e43ba92872551520e
Parents: 6f763a7
Author: Alex Harui <aharui@apache.org>
Authored: Tue Dec 3 04:51:07 2013 +0000
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Dec 3 04:51:07 2013 +0000

----------------------------------------------------------------------
 ant_on_air/src/org/apache/flex/ant/tags/Property.as | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2cc92bf1/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 6215ab5..35b899b 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
@@ -116,6 +116,8 @@ package org.apache.flex.ant.tags
             var args:Vector.<String> = new Vector.<String>();
             if (Capabilities.os.indexOf('Mac OS') > -1)
                 args.push("-c");
+			else
+				args.push("/c");
             args.push("set");
             nativeProcessStartupInfo.arguments = args;
             process = new NativeProcess();
@@ -142,7 +144,11 @@ package org.apache.flex.ant.tags
             var stdOut:IDataInput = process.standardOutput; 
             var data:String = stdOut.readUTFBytes(process.standardOutput.bytesAvailable);

             trace("Got: ", data); 
-            var propLines:Array = data.split("\n");
+            var propLines:Array;
+			if (Capabilities.os.indexOf('Mac OS') > -1)
+				propLines = data.split("\n");
+			else
+				propLines = data.split("\r\n");
             for each (var line:String in propLines)
             {
                 var parts:Array = line.split("=");


Mime
View raw message