Check that md5 path is file and has content
authorJoel Johnson <mrjoel@lixil.net>
Thu, 26 Dec 2013 20:53:37 +0000 (13:53 -0700)
committerJoel Johnson <mrjoel@lixil.net>
Thu, 26 Dec 2013 20:53:37 +0000 (13:53 -0700)
src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java

index 7ee17d6..9790181 100644 (file)
@@ -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
       {