remove the bifurcation logic since all the banks migrated to NABARD
This commit is contained in:
@@ -43,17 +43,23 @@ public class SendLocalfile {
|
|||||||
for (File file : listOfFiles) {
|
for (File file : listOfFiles) {
|
||||||
if (file.isFile()) {
|
if (file.isFile()) {
|
||||||
System.out.println("Going to send file: " + file.getAbsolutePath());
|
System.out.println("Going to send file: " + file.getAbsolutePath());
|
||||||
String bankCode = file.getName().split("-")[0];
|
// String bankCode = file.getName().split("-")[0];
|
||||||
String bankHost = "";
|
String bankHost = hostNabard;
|
||||||
if (bankCode.equals("0005") || bankCode.equals("0021") || bankCode.equals("0016")
|
// if (bankCode.equals("0005") || bankCode.equals("0021") ||
|
||||||
|| bankCode.equals("0018") || bankCode.equals("0001") || bankCode.equals("0004")
|
// bankCode.equals("0016")
|
||||||
|| bankCode.equals("0007") || bankCode.equals("0020") || bankCode.equals("0006")
|
// || bankCode.equals("0018") || bankCode.equals("0001") ||
|
||||||
|| bankCode.equals("0009") || bankCode.equals("0014") || bankCode.equals("0003")
|
// bankCode.equals("0004")
|
||||||
|| bankCode.equals("0012") || bankCode.equals("0013")) {
|
// || bankCode.equals("0007") || bankCode.equals("0020") ||
|
||||||
bankHost = hostNabard;
|
// bankCode.equals("0006")
|
||||||
} else {
|
// || bankCode.equals("0009") || bankCode.equals("0014") ||
|
||||||
bankHost = hostUcb;
|
// bankCode.equals("0003")
|
||||||
}
|
// || bankCode.equals("0012") || bankCode.equals("0013") ||
|
||||||
|
// bankCode.equals("0002")
|
||||||
|
// || bankCode.equals("0015") || bankCode.equals("0017")) {
|
||||||
|
// bankHost = hostNabard;
|
||||||
|
// } else {
|
||||||
|
// bankHost = hostUcb;
|
||||||
|
// }
|
||||||
|
|
||||||
if (this.transfer_protocol.equals("SSH")) {
|
if (this.transfer_protocol.equals("SSH")) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user