Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class Extension {
public String revengFile = null;
public Boolean generateAnnotations = true;
public Boolean useGenerics = true;
public String templatePath = null;

public Extension(Project project) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ void doWork() {
File outputFolder = getOutputFolder();
hbmExporter.getProperties().put(ExporterConstants.METADATA_DESCRIPTOR, createJdbcDescriptor());
hbmExporter.getProperties().put(ExporterConstants.DESTINATION_FOLDER, outputFolder);
String templatePath = getExtension().templatePath;
if (templatePath != null) {
getLogger().lifecycle("Setting template path to: " + templatePath);
hbmExporter.getProperties().put(ExporterConstants.TEMPLATE_PATH, new String[] { templatePath });
}
getLogger().lifecycle("Starting DAO export to directory: " + outputFolder + "...");
hbmExporter.start();
getLogger().lifecycle("DAO export finished");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ void doWork() {
File outputFolder = getOutputFolder();
hbmExporter.getProperties().put(ExporterConstants.METADATA_DESCRIPTOR, createJdbcDescriptor());
hbmExporter.getProperties().put(ExporterConstants.DESTINATION_FOLDER, outputFolder);
String templatePath = getExtension().templatePath;
if (templatePath != null) {
getLogger().lifecycle("Setting template path to: " + templatePath);
hbmExporter.getProperties().put(ExporterConstants.TEMPLATE_PATH, new String[] { templatePath });
}
getLogger().lifecycle("Starting HBM export to directory: " + outputFolder + "...");
hbmExporter.start();
getLogger().lifecycle("HBM export finished");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ void doWork() {
File outputFolder = getOutputFolder();
pojoExporter.getProperties().put(ExporterConstants.METADATA_DESCRIPTOR, createJdbcDescriptor());
pojoExporter.getProperties().put(ExporterConstants.DESTINATION_FOLDER, outputFolder);
String templatePath = getExtension().templatePath;
if (templatePath != null) {
getLogger().lifecycle("Setting template path to: " + templatePath);
pojoExporter.getProperties().put(ExporterConstants.TEMPLATE_PATH, new String[] { templatePath });
}
getLogger().lifecycle("Starting Java export to directory: " + outputFolder + "...");
pojoExporter.start();
getLogger().lifecycle("Java export finished");
Expand Down