diff --git a/CHANGELOG.md b/CHANGELOG.md index 7baab09..dca81ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [v1.0.6] + +- When extracting a .omt package, the "`.empty`" files are skipped. + ## [v1.0.5] - Avoid errors during `onProjectStatusChanged`, as the OMT menus could sometime not be present. diff --git a/gradle.properties b/gradle.properties index cf9e277..32cb2fc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -pluginMainClass=net.briac.omegat.plugin.omt.ManageOMTPackage -pluginName=OMT Package Plugin -version=1.0.5 -omegatPluginDir=C:/Users/briac/AppData/Roaming/OmegaT/plugins/ +pluginMainClass=net.briac.omegat.plugin.omt.ManageOMTPackage +pluginName=OMT Package Plugin +version=1.0.6 +omegatPluginDir=C:/Users/briac/AppData/Roaming/OmegaT/plugins/ diff --git a/src/main/java/net/briac/omegat/plugin/omt/ManageOMTPackage.java b/src/main/java/net/briac/omegat/plugin/omt/ManageOMTPackage.java index af35b5f..41f2b1e 100644 --- a/src/main/java/net/briac/omegat/plugin/omt/ManageOMTPackage.java +++ b/src/main/java/net/briac/omegat/plugin/omt/ManageOMTPackage.java @@ -383,7 +383,8 @@ public static File extractFromOmt(File omtFile) throws Exception { if (e.isDirectory()) { outFile.mkdirs(); } else { - if (e.getName().equals(IGNORE_FILE)) { + if (outFile.getName().equals(IGNORE_FILE)) { + outFile.getParentFile().mkdirs(); continue; } try (InputStream in = zip.getInputStream(e)) {