Skip to content

Commit

Permalink
When extracting a .omt package, the ".empty" files are skipped.
Browse files Browse the repository at this point in the history
  • Loading branch information
briac authored and briac committed May 25, 2019
1 parent 61ae760 commit 121a35d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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/
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 121a35d

Please sign in to comment.