flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [13/28] git commit: [flex-utilities] [refs/heads/develop] - FLEX-34318 - [Mavenizer] Refactor the Mavenizer in preparation of future mavenized releases of Flex - Fixed a problem causing the mavenizer to abort if a Flex SDK didn't contain Air
Date Fri, 05 Sep 2014 13:15:29 GMT
FLEX-34318 - [Mavenizer] Refactor the Mavenizer in preparation of future mavenized releases
of Flex
- Fixed a problem causing the mavenizer to abort if a Flex SDK didn't contain Air


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

Branch: refs/heads/develop
Commit: 2e4279bb6cd57d83fe8681e7be4d0ec2ee35e6db
Parents: ca5c097
Author: Christofer Dutz <christofer.dutz@c-ware.de>
Authored: Sun May 25 00:13:07 2014 +0200
Committer: Christofer Dutz <christofer.dutz@c-ware.de>
Committed: Sun May 25 00:13:07 2014 +0200

----------------------------------------------------------------------
 .../utilities/converter/core/SdkConverter.java  | 25 +++++++++++++++-----
 1 file changed, 19 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2e4279bb/mavenizer/core/src/main/java/org/apache/flex/utilities/converter/core/SdkConverter.java
----------------------------------------------------------------------
diff --git a/mavenizer/core/src/main/java/org/apache/flex/utilities/converter/core/SdkConverter.java
b/mavenizer/core/src/main/java/org/apache/flex/utilities/converter/core/SdkConverter.java
index 44115cc..f438dcd 100644
--- a/mavenizer/core/src/main/java/org/apache/flex/utilities/converter/core/SdkConverter.java
+++ b/mavenizer/core/src/main/java/org/apache/flex/utilities/converter/core/SdkConverter.java
@@ -17,6 +17,7 @@
 package org.apache.flex.utilities.converter.core;
 
 import org.apache.flex.utilities.converter.air.AirConverter;
+import org.apache.flex.utilities.converter.exceptions.ConverterException;
 import org.apache.flex.utilities.converter.flash.FlashConverter;
 import org.apache.flex.utilities.converter.flex.FlexConverter;
 
@@ -46,12 +47,24 @@ public class SDKConverter {
             }
         }
 
-        final FlexConverter flexConverter = new FlexConverter(sourceDirectory, targetDirectory);
-        flexConverter.convert();
-        final AirConverter airConverter = new AirConverter(sourceDirectory, targetDirectory);
-        airConverter.convert();
-        final FlashConverter flashConverter = new FlashConverter(sourceDirectory, targetDirectory);
-        flashConverter.convert();
+        try {
+            final FlexConverter flexConverter = new FlexConverter(sourceDirectory, targetDirectory);
+            flexConverter.convert();
+        } catch(ConverterException e) {
+            System.out.println("Skipping generation of FLEX SDK");
+        }
+        try {
+            final AirConverter airConverter = new AirConverter(sourceDirectory, targetDirectory);
+            airConverter.convert();
+        } catch(ConverterException e) {
+            System.out.println("Skipping generation of AIR SDK");
+        }
+        try {
+            final FlashConverter flashConverter = new FlashConverter(sourceDirectory, targetDirectory);
+            flashConverter.convert();
+        } catch(ConverterException e) {
+            System.out.println("Skipping generation of Flash SDK");
+        }
     }
 
 }


Mime
View raw message