flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
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, 02 Jul 2015 13:07:18 GMT
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 <christofer.dutz@codecentric.de>
Authored: Thu Jul 2 15:07:07 2015 +0200
Committer: Christofer Dutz <christofer.dutz@codecentric.de>
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) {


Mime
View raw message