flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From que...@apache.org
Subject [17/50] [abbrv] git commit: [flex-utilities] [refs/heads/as3httpclient-work] - - Made the fontkit converter not to throw an exception if the 'optional' directory doesn't exist
Date Sun, 31 May 2015 22:18:59 GMT
- Made the fontkit converter not to throw an exception if the 'optional' directory doesn't
exist


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

Branch: refs/heads/as3httpclient-work
Commit: 16976268d19ee4250ade795cdc75459ea6604f0e
Parents: 9804635
Author: Christofer Dutz <christofer.dutz@codecentric.de>
Authored: Sat Apr 11 12:26:34 2015 +0200
Committer: Christofer Dutz <christofer.dutz@codecentric.de>
Committed: Sat Apr 11 12:26:34 2015 +0200

----------------------------------------------------------------------
 .../apache/flex/utilities/converter/fontkit/FontkitConverter.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/16976268/mavenizer/converters/fontkit/src/main/java/org/apache/flex/utilities/converter/fontkit/FontkitConverter.java
----------------------------------------------------------------------
diff --git a/mavenizer/converters/fontkit/src/main/java/org/apache/flex/utilities/converter/fontkit/FontkitConverter.java
b/mavenizer/converters/fontkit/src/main/java/org/apache/flex/utilities/converter/fontkit/FontkitConverter.java
index e222db5..81fbe09 100644
--- a/mavenizer/converters/fontkit/src/main/java/org/apache/flex/utilities/converter/fontkit/FontkitConverter.java
+++ b/mavenizer/converters/fontkit/src/main/java/org/apache/flex/utilities/converter/fontkit/FontkitConverter.java
@@ -20,7 +20,8 @@ public class FontkitConverter extends BaseConverter implements Converter
{
     protected void processDirectory() throws ConverterException {
         File fontkitRootDir = new File(rootSourceDirectory, "lib/external/optional");
         if(!fontkitRootDir.exists() || !fontkitRootDir.isDirectory()) {
-            throw new ConverterException("Fontkit directory '" + fontkitRootDir.getPath()
+ "' is invalid.");
+            System.out.println("Skipping Fontkit generation.");
+            return;
         }
 
         File afeJar = new File(fontkitRootDir, "afe.jar");


Mime
View raw message