Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96922101FF for ; Tue, 3 Dec 2013 05:01:26 +0000 (UTC) Received: (qmail 59239 invoked by uid 500); 3 Dec 2013 05:01:26 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 59070 invoked by uid 500); 3 Dec 2013 05:01:24 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 59064 invoked by uid 99); 3 Dec 2013 05:01:23 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 05:01:23 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3578691B05D; Tue, 3 Dec 2013 05:01:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aharui@apache.org To: commits@flex.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: [flex-utilities] [refs/heads/develop] - Fix environment variable handling on Windows Date: Tue, 3 Dec 2013 05:01:22 +0000 (UTC) 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 Authored: Tue Dec 3 04:51:07 2013 +0000 Committer: Alex Harui 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. = new Vector.(); 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("=");