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 EF2A318EE3 for ; Thu, 2 Jul 2015 13:07:18 +0000 (UTC) Received: (qmail 86677 invoked by uid 500); 2 Jul 2015 13:07:18 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 86653 invoked by uid 500); 2 Jul 2015 13:07:18 -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 86645 invoked by uid 99); 2 Jul 2015 13:07:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2015 13:07:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AACF3E0504; Thu, 2 Jul 2015 13:07:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cdutz@apache.org To: commits@flex.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: [flex-utilities] [refs/heads/develop] - Added a system-property "platform-type" to force the platform type to the given type (Allows Linux based CI builds to auto-download AIR for Windows or Mac instead of Linux) Date: Thu, 2 Jul 2015 13:07:18 +0000 (UTC) Repository: flex-utilities Updated Branches: refs/heads/develop c21b31d00 -> 6c48e3d3d Added a system-property "platform-type" to force the platform type to the given type (Allows Linux based CI builds to auto-download AIR for Windows or Mac instead of Linux) Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/6c48e3d3 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/6c48e3d3 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/6c48e3d3 Branch: refs/heads/develop Commit: 6c48e3d3dc9010a4ef715d953ae7772c17e7ec87 Parents: c21b31d Author: Christofer Dutz Authored: Thu Jul 2 15:07:07 2015 +0200 Committer: Christofer Dutz Committed: Thu Jul 2 15:07:07 2015 +0200 ---------------------------------------------------------------------- .../utilities/converter/mavenextension/FlexEventSpy.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/6c48e3d3/flex-maven-tools/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java b/flex-maven-tools/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java index 034636d..863d288 100644 --- a/flex-maven-tools/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java +++ b/flex-maven-tools/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java @@ -176,7 +176,13 @@ public class FlexEventSpy extends AbstractEventSpy { try { File localRepoBaseDir = new File(mavenSession.getLocalRepository().getBasedir()); DownloadRetriever downloadRetriever = new DownloadRetriever(); - File sdkRoot = downloadRetriever.retrieve(SdkType.AIR, version, PlatformType.getCurrent()); + PlatformType platformType; + if(System.getProperty("platform-type") == null) { + platformType = PlatformType.getCurrent(); + } else { + platformType = PlatformType.valueOf(System.getProperty("platform-type")); + } + File sdkRoot = downloadRetriever.retrieve(SdkType.AIR, version, platformType); AirConverter converter = new AirConverter(sdkRoot, localRepoBaseDir); converter.convert(); } catch (Throwable ce) {