Repository: flex-utilities Updated Branches: refs/heads/develop 980463563 -> 16976268d
- 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/develop Commit: 16976268d19ee4250ade795cdc75459ea6604f0e Parents: 9804635 Author: Christofer Dutz <christofer.d...@codecentric.de> Authored: Sat Apr 11 12:26:34 2015 +0200 Committer: Christofer Dutz <christofer.d...@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");