From 2f3807b9fbde5c1230e3a22010932ddec722871b Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 29 Nov 2012 18:23:59 +0100 Subject: [PATCH] Found annotated classes get logged now --- .../java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java index f016459f..04c85179 100644 --- a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java @@ -29,11 +29,11 @@ import java.sql.DriverPropertyInfo; import java.sql.SQLException; import java.sql.SQLFeatureNotSupportedException; import java.util.Enumeration; -import java.util.HashSet; import java.util.List; import java.util.Map.Entry; import java.util.Properties; import java.util.Set; +import java.util.TreeSet; import java.util.logging.Logger; import javax.persistence.Embeddable; import javax.persistence.Entity; @@ -195,7 +195,7 @@ public class Hbm2DdlMojo extends AbstractMojo throw new MojoExecutionException("Cannot scan for annotated classes in " + outputDirectory + ": directory does not exist!"); - Set classes = new HashSet(); + Set classes = new TreeSet(); try { AnnotationDB db = new AnnotationDB(); @@ -217,6 +217,10 @@ public class Hbm2DdlMojo extends AbstractMojo if (classes.isEmpty()) throw new MojoFailureException("No annotated classes found in directory " + outputDirectory); + getLog().info("Detected classes with mapping-annotations:"); + for (String classname : classes) + getLog().info(" " + classname); + Properties properties = new Properties(); /** Try to read configuration from properties-file */ -- 2.20.1