From eeb182205a51c4507e61e1862af184341e65dbd3 Mon Sep 17 00:00:00 2001 From: Joel Johnson Date: Thu, 26 Dec 2013 13:53:37 -0700 Subject: [PATCH] Check that md5 path is file and has content --- src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1