refactor
This commit is contained in:
parent
eb1ecef78d
commit
bd86e26dda
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user