WIP
[hibernate4-maven-plugin] / src / main / java / de / juplo / plugins / hibernate / AbstractSchemaMojo.java
index ca6b935..71e1250 100644 (file)
@@ -687,7 +687,7 @@ public abstract class AbstractSchemaMojo extends AbstractMojo
       {
         thread.setContextClassLoader(classLoader);
         ExceptionHandlerCollectingImpl handler =
-            build((MetadataImplementor)metadataBuilder.build());
+            build((MetadataImplementor)metadataBuilder.build(), output);
         if (handler.getExceptions().size() > 0)
         {
           StringBuilder builder = new StringBuilder();
@@ -738,7 +738,10 @@ public abstract class AbstractSchemaMojo extends AbstractMojo
   }
 
 
-  abstract ExceptionHandlerCollectingImpl build(MetadataImplementor metadata)
+  abstract ExceptionHandlerCollectingImpl build(
+      MetadataImplementor metadata,
+      File file
+      )
     throws
       MojoFailureException,
       MojoExecutionException;