public void execute() throws MojoExecutionException
{
setupLogging();
CodeGenConfig config = new CodeGenConfig();
if(configFile != null)
{
getLog().info("Loading configuration file: " + configFile);
config.init(configFile.getAbsolutePath());
}
else
{
config.setJdbcURL(jdbcURL);
config.setJdbcClass(jdbcClass);
config.setJdbcUser(jdbcUser);
config.setJdbcPwd(jdbcPwd);
config.setTargetFolder(targetDirectory.getAbsolutePath());
config.setTemplateFolder(templateDirectory);
config.setPackageName(packageName);
}
//config.setExceptionsEnabled(true);
getLog().info("Generating code for " + jdbcURL + " ...");