Improve Registry Migration Client
@@ -232,6 +232,9 @@ public class RegistryResourceProjectExporter extends RegistryExporter {
throws ProjectCreationException {
List<ResourceProjectArtifact> artifacts = new ArrayList<>();
for (RegistryResource registryResource : registryResources) {
+ if (!registryResource.canExport()) {
+ continue;
+ }
if (registryResource instanceof RegistryCollection) {
addRegistryCollection((RegistryCollection) registryResource, registryResourceModulePath, artifacts);
} else {
@@ -297,7 +300,6 @@ public class RegistryResourceProjectExporter extends RegistryExporter {
}
//update the artifact.xml file
- if (registryCollection.canExport()) {
String resourceFQN = registryCollection.getFullQualifiedResourceName();
List<ResourceProperty> resourcePropertyList = registryCollection.getProperties();
@@ -313,7 +315,6 @@ public class RegistryResourceProjectExporter extends RegistryExporter {
// Update the summary report and return the next index
summaryTable.add(new String[]{resourcePath, MigrationClientUtils.EXPORT_SUCCESS_MESSAGE, "-"});
}
- }
/**
* Add a registry item to the Registry Resource module.
