X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=dist%2Fhibernate-maven-plugin-2.0.0%2Fcpd.html;fp=dist%2Fhibernate-maven-plugin-2.0.0%2Fcpd.html;h=0000000000000000000000000000000000000000;hp=21b94b57055bfc4f99077eaf6ee9bfbd18f9dc9b;hb=b293b312d6f0dd8b2dc716375fd442dd295a9942;hpb=9179a67d9952d3b63e95686dbd6cacd3c9e13cb2 diff --git a/dist/hibernate-maven-plugin-2.0.0/cpd.html b/dist/hibernate-maven-plugin-2.0.0/cpd.html deleted file mode 100644 index 21b94b57..00000000 --- a/dist/hibernate-maven-plugin-2.0.0/cpd.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - - - - 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);
-
-
- - -
-
- -
- - -