From: Joel Johnson Date: Thu, 26 Dec 2013 20:53:37 +0000 (-0700) Subject: Check that md5 path is file and has content X-Git-Tag: hibernate4-maven-plugin-1.0.4~19 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=eeb182205a51c4507e61e1862af184341e65dbd3;p=hibernate4-maven-plugin Check that md5 path is file and has content --- diff --git a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java index 7ee17d67..97901818 100644 --- a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java @@ -344,7 +344,7 @@ public class Hbm2DdlMojo extends AbstractMojo boolean modified = false; File saved = new File(buildDirectory + File.separator + MD5S); - if (saved.exists()) + if (saved.isFile() && saved.length() > 0) { try {