This commit is contained in:
Radek Davidek 2025-10-30 15:38:56 +01:00
parent eb1ecef78d
commit bd86e26dda

View File

@ -181,17 +181,9 @@ public class ExportToWso2FromV32 extends AbstractProcess {
boolean appendFile = true; boolean appendFile = true;
String specialName = null; String specialName = null;
if (FileType.POLICY_IN.toString().equals(amd.getGroupId())) { if (FileType.POLICY_IN.toString().equals(amd.getGroupId())
subDir = "Policies/"; || FileType.POLICY_OUT.toString().equals(amd.getGroupId())
specialName = r.getName().replace(".xml", "_v1_api.j2"); || FileType.POLICY_FAULT.toString().equals(amd.getGroupId())) {
content = convertSequenceToPolicy(content);
addGenericPolicyMetadata(zos, baseDir + subDir, specialName.replace(".j2", ".yaml"), r);
} else if (FileType.POLICY_OUT.toString().equals(amd.getGroupId())) {
subDir = "Policies/";
specialName = r.getName().replace(".xml", "_v1_api.j2");
content = convertSequenceToPolicy(content);
addGenericPolicyMetadata(zos, baseDir + subDir, specialName.replace(".j2", ".yaml"), r);
} else if (FileType.POLICY_FAULT.toString().equals(amd.getGroupId())) {
subDir = "Policies/"; subDir = "Policies/";
specialName = r.getName().replace(".xml", "_v1_api.j2"); specialName = r.getName().replace(".xml", "_v1_api.j2");
content = convertSequenceToPolicy(content); content = convertSequenceToPolicy(content);