From: Kai Moritz Date: Thu, 29 Nov 2012 17:23:59 +0000 (+0100) Subject: Found annotated classes get logged now X-Git-Tag: hibernate4-maven-plugin-1.0.1~17 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=2f3807b9fbde5c1230e3a22010932ddec722871b;p=hibernate4-maven-plugin Found annotated classes get logged now --- 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 */