X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fplugins%2Fhibernate4%2FHbm2DdlMojo.java;h=3b3a72b79137b1d7a46b4d19775e3f4c40ff838f;hb=bf5e8c39287713b9eb236ca441473f723059357a;hp=e7aa1541d9f85f23b81c56fcfa5fa9e383739b37;hpb=6c95bef6019d3ad9b6b0c7ae61d2f0cd868e8f1d;p=hibernate4-maven-plugin diff --git a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java index e7aa1541..3b3a72b7 100644 --- a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java @@ -82,6 +82,8 @@ public class Hbm2DdlMojo extends AbstractMojo /** * The maven project. + *
+ * Only needed internally. * * @parameter expression="${project}" * @required @@ -91,20 +93,58 @@ public class Hbm2DdlMojo extends AbstractMojo /** * Build-directory. + *
+ * Only needed internally. * * @parameter expression="${project.build.directory}" + * @required + * @readonly */ private String buildDirectory; /** - * Class-directory to scan. + * Classes-Directory to scan. + *
+ * This parameter defaults to the maven build-output-directory for classes. + * Additonally, all dependencies are scanned for annotated classes. * * @parameter expression="${project.build.outputDirectory}" */ private String outputDirectory; + /** + * Wether to scan test-classes too, or not. + *
+ * If this parameter is set to true
the test-classes of the
+ * artifact will be scanned for hibernate-annotated classes additionally.
+ *
+ * @parameter expression="${hibernate.export.scann_testclasses}" default-value="false"
+ */
+ private boolean scanTestClasses;
+
+ /**
+ * Test-Classes-Directory to scan.
+ *
+ * This parameter defaults to the maven build-output-directory for + * test-classes. + *
+ * This parameter is only used, when scanTestClasses
is set
+ * to true
!
+ *
+ * @parameter expression="${project.build.testOutputDirectory}"
+ */
+ private String testOutputDirectory;
+
/**
* Skip execution
+ *
+ * If set to true
, the execution is skipped.
+ *
+ * A skipped excecution is signaled via the maven-property
+ * ${hibernate.export.skipped}
.
+ *
+ * The excecution is skipped automatically, if no modified or newly added + * annotated classes are found and the dialect was not changed. * * @parameter expression="${maven.test.skip}" default-value="false" */ @@ -114,7 +154,9 @@ public class Hbm2DdlMojo extends AbstractMojo * Force execution *
* Force execution, even if no modified or newly added annotated classes
- * where found. skip
takes precedence over force
.
+ * where found and the dialect was not changed.
+ *
+ * skip
takes precedence over force
.
*
* @parameter expression="${hibernate.export.force}" default-value="false"
*/
@@ -165,8 +207,8 @@ public class Hbm2DdlMojo extends AbstractMojo
/**
* Target of execution:
*