diff --git a/modules/apis/src/main/java/com/axway/apim/api/export/impl/ExportHelper.java b/modules/apis/src/main/java/com/axway/apim/api/export/impl/ExportHelper.java index 85f80eea..58288887 100644 --- a/modules/apis/src/main/java/com/axway/apim/api/export/impl/ExportHelper.java +++ b/modules/apis/src/main/java/com/axway/apim/api/export/impl/ExportHelper.java @@ -163,7 +163,7 @@ public void writeSpec(APISpecification apiDef, ExportAPI exportAPI, File localFo targetFile = localFolder.getCanonicalPath() + "/" + fileName + fileExtension; writeBytesToFile(apiDef.getApiSpecificationContent(), targetFile); } - exportAPI.getAPIDefinition().setApiSpecificationFile(fileName); + exportAPI.getAPIDefinition().setApiSpecificationFile(fileName + fileExtension); } } catch (IOException e) { throw new AppException("Can't save API-Definition locally to file: " + targetFile, ErrorCode.UNXPECTED_ERROR, e);