X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=dist%2Fhibernate-maven-plugin-2.0.0%2Fcpd.html;fp=dist%2Fhibernate-maven-plugin-2.0.0%2Fcpd.html;h=21b94b57055bfc4f99077eaf6ee9bfbd18f9dc9b;hb=a53595184bd6e57bdc45292cc92c393c4e2dfe6e;hp=0000000000000000000000000000000000000000;hpb=c48c9ee0e9faa89a4c0a5323b367b9f5a6abe602;p=website diff --git a/dist/hibernate-maven-plugin-2.0.0/cpd.html b/dist/hibernate-maven-plugin-2.0.0/cpd.html new file mode 100644 index 00000000..21b94b57 --- /dev/null +++ b/dist/hibernate-maven-plugin-2.0.0/cpd.html @@ -0,0 +1,231 @@ + + + + + + + + + juplo - Hibernate Maven Plugin - CPD + + + + + + + + + + + +
+ + +
+
+

CPD

+
+

CPD Results

+

The following document contains the results of PMD's CPD 5.2.3.

+
+

Duplications

+ + + + + + + + + + +
FileLine
de/juplo/plugins/hibernate/CreateMojo.java35
de/juplo/plugins/hibernate/DropMojo.java35
+
+
public class CreateMojo extends AbstractSchemaMojo
+{
+  /**
+   * Output file.
+   * <p>
+   * If the specified filename is not absolut, the file will be created
+   * relative to the project build directory
+   * (<code>project.build.directory</code>).
+   *
+   * @parameter property="hibernate.schema.export.create" default-value="create.sql"
+   * @since 1.0
+   */
+  private String outputFile;
+
+
+  @Override
+  public final void execute()
+    throws
+      MojoFailureException,
+      MojoExecutionException
+  {
+    super.execute(outputFile);
+  }
+
+
+  @Override
+  void build(MetadataImplementor metadata)
+      throws
+        MojoExecutionException,
+        MojoFailureException
+  {
+    SchemaExport schemaExport = new SchemaExport(metadata, createNamespaces);
+    schemaExport.setDelimiter(delimiter);
+    schemaExport.setFormat(format);
+
+    File output = new File(outputFile);
+
+    if (!output.isAbsolute())
+    {
+      // Interpret relative file path relative to build directory
+      output = new File(buildDirectory, outputFile);
+      getLog().debug("Adjusted relative path, resulting path is " + output.getPath());
+    }
+
+    // Ensure that directory path for specified file exists
+    File outFileParentDir = output.getParentFile();
+    if (null != outFileParentDir && !outFileParentDir.exists())
+    {
+      try
+      {
+        getLog().info("Creating directory path for output file:" + outFileParentDir.getPath());
+        outFileParentDir.mkdirs();
+      }
+      catch (Exception e)
+      {
+        getLog().error("Error creating directory path for output file: " + e.getLocalizedMessage());
+      }
+    }
+
+    schemaExport.setOutputFile(output.getPath());
+    schemaExport.execute(false, this.export, false, true);
+
+
+ + +
+
+ +
+ + +