From 3e1c21dab781c04b93979667ca6c12a9c6ca085d Mon Sep 17 00:00:00 2001 From: rathnapandi Date: Thu, 21 Nov 2024 11:29:54 -0700 Subject: [PATCH] Code clean up --- .../com/axway/apim/appexport/impl/JsonApplicationExporter.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/apps/src/main/java/com/axway/apim/appexport/impl/JsonApplicationExporter.java b/modules/apps/src/main/java/com/axway/apim/appexport/impl/JsonApplicationExporter.java index 3b7ab95c1..e0dd42b00 100644 --- a/modules/apps/src/main/java/com/axway/apim/appexport/impl/JsonApplicationExporter.java +++ b/modules/apps/src/main/java/com/axway/apim/appexport/impl/JsonApplicationExporter.java @@ -59,7 +59,6 @@ public void saveApplicationLocally(ObjectMapper mapper, ExportApplication app, S Utils.deleteDirectory(localFolder); } else { LOG.warn("Local export folder: {} already exists. Application will not be exported. (You may set -deleteTarget)", localFolder); - this.hasError = true; return; } } @@ -100,7 +99,6 @@ public void writeContent(ExportApplication app, ObjectMapper mapper, File localF mapper.writeValue(System.out, app); } else { mapper.writeValue(new File(localFolder.getCanonicalPath() + configFile), app); - this.result.addExportedFile(localFolder.getCanonicalPath() + configFile); } } catch (Exception e) { throw new AppException("Can't write Application-Configuration file for application: '" + app.getName() + "'", ErrorCode.UNXPECTED_ERROR, e);