[#4122] Log code generation configuration XML only in DEBUG level
This commit is contained in:
parent
07a7c7905c
commit
63c8c48a80
@ -116,18 +116,18 @@ public class Plugin extends AbstractMojo {
|
||||
StringWriter writer = new StringWriter();
|
||||
JAXB.marshal(configuration, writer);
|
||||
|
||||
getLog().info("Using this configuration:\n" + writer.toString());
|
||||
GenerationTool.main(configuration);
|
||||
getLog().debug("Using this configuration:\n" + writer.toString());
|
||||
GenerationTool.generate(configuration);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
throw new MojoExecutionException("Error running jOOQ code generation tool", ex);
|
||||
}
|
||||
|
||||
|
||||
// [#2886] Restore old class loader
|
||||
finally {
|
||||
Thread.currentThread().setContextClassLoader(oldCL);
|
||||
}
|
||||
|
||||
|
||||
project.addCompileSourceRoot(generator.getTarget().getDirectory());
|
||||
}
|
||||
|
||||
|
||||
@ -148,7 +148,7 @@ public class GenerationTool {
|
||||
log.info("Initialising properties", args[0]);
|
||||
|
||||
try {
|
||||
main(load(in));
|
||||
generate(load(in));
|
||||
} catch (Exception e) {
|
||||
log.error("Cannot read " + args[0] + ". Error : " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user