]> juplo.de Git - hibernate4-maven-plugin/commitdiff
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 7ee17d67b9378553ac705a32a3c436d2576fa5fd..97901818c999810dfe0b508871e9e2dae81348e8 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
       {