Merge branch 'main' of https://gitea.kamma.cz/kamma/apicurio-migration-tool
This commit is contained in:
commit
6943ffe851
@ -109,8 +109,8 @@ public class ExportAppsToWso2FromV32 extends AbstractProcess {
|
|||||||
|
|
||||||
byte[] data = prepareAppZipFile32to45(yamlApp);
|
byte[] data = prepareAppZipFile32to45(yamlApp);
|
||||||
|
|
||||||
String fileName = yamlApp.getData().getApplicationInfo().getName() + "-"
|
String fileName = (yamlApp.getData().getApplicationInfo().getName() + "-"
|
||||||
+ yamlApp.getData().getApplicationInfo().getOwner() + "-v45.zip";
|
+ yamlApp.getData().getApplicationInfo().getOwner() + "-v45.zip").replace('\\', '_').replace('/', '_');
|
||||||
|
|
||||||
if (config.isStoreMigratedArtifacts()) {
|
if (config.isStoreMigratedArtifacts()) {
|
||||||
File tmpFile = new File("tmp/app/", fileName);
|
File tmpFile = new File("tmp/app/", fileName);
|
||||||
@ -138,8 +138,8 @@ public class ExportAppsToWso2FromV32 extends AbstractProcess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public byte[] prepareAppZipFile32to45(ApplicationDetail45 yamlApp) throws Exception {
|
public byte[] prepareAppZipFile32to45(ApplicationDetail45 yamlApp) throws Exception {
|
||||||
String baseDir = yamlApp.getData().getApplicationInfo().getOwner() + "-"
|
String baseDir = (yamlApp.getData().getApplicationInfo().getOwner() + "-"
|
||||||
+ yamlApp.getData().getApplicationInfo().getName() + "/";
|
+ yamlApp.getData().getApplicationInfo().getName()).replace('\\', '_').replace('/', '_') + "/";
|
||||||
|
|
||||||
try (ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
try (ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
ZipOutputStream zos = new ZipOutputStream(baos)) {
|
ZipOutputStream zos = new ZipOutputStream(baos)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user