projects
/
hibernate4-maven-plugin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Found annotated classes get logged now
[hibernate4-maven-plugin]
/
src
/
main
/
java
/
de
/
juplo
/
plugins
/
hibernate4
/
Hbm2DdlMojo.java
diff --git
a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java
b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java
index
f016459
..
04c8517
100644
(file)
--- 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.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.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;
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!");
throw new MojoExecutionException("Cannot scan for annotated classes in " + outputDirectory + ": directory does not exist!");
- Set<String> classes = new
Hash
Set<String>();
+ Set<String> classes = new
Tree
Set<String>();
try
{
AnnotationDB db = new AnnotationDB();
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);
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 */
Properties properties = new Properties();
/** Try to read configuration from properties-file */