refactor
This commit is contained in:
parent
eb1ecef78d
commit
bd86e26dda
@ -181,17 +181,9 @@ public class ExportToWso2FromV32 extends AbstractProcess {
|
||||
boolean appendFile = true;
|
||||
String specialName = null;
|
||||
|
||||
if (FileType.POLICY_IN.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_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())) {
|
||||
if (FileType.POLICY_IN.toString().equals(amd.getGroupId())
|
||||
|| FileType.POLICY_OUT.toString().equals(amd.getGroupId())
|
||||
|| FileType.POLICY_FAULT.toString().equals(amd.getGroupId())) {
|
||||
subDir = "Policies/";
|
||||
specialName = r.getName().replace(".xml", "_v1_api.j2");
|
||||
content = convertSequenceToPolicy(content);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user