continue fla exporting with the next file when an swf fails to export

This commit is contained in:
honfika@gmail.com
2016-03-06 21:10:55 +01:00
parent 65c5943544
commit 2cef32100f
2 changed files with 10 additions and 4 deletions

View File

@@ -1577,10 +1577,15 @@ public class CommandLineArgumentParser {
XFLExportSettings settings = new XFLExportSettings();
settings.compressed = compressed;
settings.exportScript = exportScript;
if (Configuration.setFFDecVersionInExportedFont.get()) {
swf.exportXfl(handler, outFile, inFile.getName(), ApplicationInfo.APPLICATION_NAME, ApplicationInfo.applicationVerName, ApplicationInfo.version, Configuration.parallelSpeedUp.get(), flaVersion, settings);
} else {
swf.exportXfl(handler, outFile, inFile.getName(), ApplicationInfo.APPLICATION_NAME, ApplicationInfo.APPLICATION_NAME, "1.0.0", Configuration.parallelSpeedUp.get(), flaVersion, settings);
try {
if (Configuration.setFFDecVersionInExportedFont.get()) {
swf.exportXfl(handler, outFile, inFile.getName(), ApplicationInfo.APPLICATION_NAME, ApplicationInfo.applicationVerName, ApplicationInfo.version, Configuration.parallelSpeedUp.get(), flaVersion, settings);
} else {
swf.exportXfl(handler, outFile, inFile.getName(), ApplicationInfo.APPLICATION_NAME, ApplicationInfo.APPLICATION_NAME, "1.0.0", Configuration.parallelSpeedUp.get(), flaVersion, settings);
}
} catch (Exception ex) {
logger.log(Level.SEVERE, "Error during XFL/FLA export", ex);
}
}