if (eogeneratorModel.getSubclassDestination() == null) {
eogeneratorModel.setSubclassDestination(eogeneratorModel.getDestination());
}
EOModelGroup modelGroup = new EOModelGroup();
Set<EOModelVerificationFailure> failures = new HashSet<EOModelVerificationFailure>();
if (loadModelGroup || modelPaths.size() == 0) {
if (System.getProperty("veogen.modelgroup.nobundle") == null) {
new BundleEOModelGroupFactory().loadModelGroup(modelGroupFolder, modelGroup, failures, loadModelGroup, new NullProgressMonitor());
}
if (System.getProperty("veogen.modelgroup.nomanifest") == null) {
new SimpleManifestEOModelGroupFactory().loadModelGroup(modelGroupFolder, modelGroup, failures, true, new NullProgressMonitor());
}
if (System.getProperty("veogen.modelgroup.noidea") == null) {
new IDEAProjectEOModelGroupFactory().loadModelGroup(modelGroupFolder, modelGroup, failures, true, new NullProgressMonitor());
}
if (System.getProperty("veogen.modelgroup.noeclipse") == null) {
new EclipseProjectEOModelGroupFactory().loadModelGroup(modelGroupFolder, modelGroup, failures, true, new NullProgressMonitor());
}
}
for (String modelPath : modelPaths) {
modelGroup.loadModelFromURL(new File(modelPath).toURL());
}
modelGroup.resolve(failures);
modelGroup.verify(failures);
boolean hasFailures = false;
for (EOModelVerificationFailure failure : failures) {
if (!failure.isWarning()) {
System.err.println("Failure: " + failure.getMessage());
hasFailures = true;