|
|
@@ -467,22 +467,19 @@ public class FTP extends Task implements FTPTaskConfig { |
|
|
|
} |
|
|
|
|
|
|
|
if (myfile.isDirectory()) { |
|
|
|
if (isIncluded(currentelement) |
|
|
|
&& currentelement.length() > 0) { |
|
|
|
if (isIncluded(currentelement) && !currentelement.isEmpty()) { |
|
|
|
accountForIncludedDir(currentelement, myfile, true); |
|
|
|
} else { |
|
|
|
if (currentelement.length() > 0 |
|
|
|
} else { |
|
|
|
if (!currentelement.isEmpty() |
|
|
|
&& currentelement.charAt(currentelement.length() - 1) |
|
|
|
!= File.separatorChar) { |
|
|
|
currentelement += File.separatorChar; |
|
|
|
} |
|
|
|
scandir(myfile.getAbsolutePath(), currentelement, true); |
|
|
|
} |
|
|
|
} else if (isCaseSensitive |
|
|
|
&& originalpattern.equals(currentelement)) { |
|
|
|
} else if (isCaseSensitive && originalpattern.equals(currentelement)) { |
|
|
|
accountForIncludedFile(currentelement); |
|
|
|
} else if (!isCaseSensitive && originalpattern |
|
|
|
.equalsIgnoreCase(currentelement)) { |
|
|
|
} else if (!isCaseSensitive && originalpattern.equalsIgnoreCase(currentelement)) { |
|
|
|
accountForIncludedFile(currentelement); |
|
|
|
} |
|
|
|
} |
|
|
@@ -1490,7 +1487,7 @@ public class FTP extends Task implements FTPTaskConfig { |
|
|
|
* @see org.apache.commons.net.ftp.FTPClientConfig |
|
|
|
*/ |
|
|
|
public void setSystemTypeKey(FTPSystemType systemKey) { |
|
|
|
if (systemKey != null && !"".equals(systemKey.getValue())) { |
|
|
|
if (systemKey != null && !systemKey.getValue().isEmpty()) { |
|
|
|
this.systemTypeKey = systemKey; |
|
|
|
configurationHasBeenSet(); |
|
|
|
} |
|
|
@@ -1503,7 +1500,7 @@ public class FTP extends Task implements FTPTaskConfig { |
|
|
|
* @see org.apache.commons.net.ftp.FTPClientConfig |
|
|
|
*/ |
|
|
|
public void setDefaultDateFormatConfig(String defaultDateFormat) { |
|
|
|
if (defaultDateFormat != null && !"".equals(defaultDateFormat)) { |
|
|
|
if (defaultDateFormat != null && !defaultDateFormat.isEmpty()) { |
|
|
|
this.defaultDateFormatConfig = defaultDateFormat; |
|
|
|
configurationHasBeenSet(); |
|
|
|
} |
|
|
@@ -1516,7 +1513,7 @@ public class FTP extends Task implements FTPTaskConfig { |
|
|
|
* @see org.apache.commons.net.ftp.FTPClientConfig |
|
|
|
*/ |
|
|
|
public void setRecentDateFormatConfig(String recentDateFormat) { |
|
|
|
if (recentDateFormat != null && !"".equals(recentDateFormat)) { |
|
|
|
if (recentDateFormat != null && !recentDateFormat.isEmpty()) { |
|
|
|
this.recentDateFormatConfig = recentDateFormat; |
|
|
|
configurationHasBeenSet(); |
|
|
|
} |
|
|
@@ -1542,7 +1539,7 @@ public class FTP extends Task implements FTPTaskConfig { |
|
|
|
* @see org.apache.commons.net.ftp.FTPClientConfig |
|
|
|
*/ |
|
|
|
public void setServerTimeZoneConfig(String serverTimeZoneId) { |
|
|
|
if (serverTimeZoneId != null && !"".equals(serverTimeZoneId)) { |
|
|
|
if (serverTimeZoneId != null && !serverTimeZoneId.isEmpty()) { |
|
|
|
this.serverTimeZoneConfig = serverTimeZoneId; |
|
|
|
configurationHasBeenSet(); |
|
|
|
} |
|
|
@@ -1556,7 +1553,7 @@ public class FTP extends Task implements FTPTaskConfig { |
|
|
|
* @see org.apache.commons.net.ftp.FTPClientConfig |
|
|
|
*/ |
|
|
|
public void setShortMonthNamesConfig(String shortMonthNames) { |
|
|
|
if (shortMonthNames != null && !"".equals(shortMonthNames)) { |
|
|
|
if (shortMonthNames != null && !shortMonthNames.isEmpty()) { |
|
|
|
this.shortMonthNamesConfig = shortMonthNames; |
|
|
|
configurationHasBeenSet(); |
|
|
|
} |
|
|
@@ -1652,7 +1649,7 @@ public class FTP extends Task implements FTPTaskConfig { |
|
|
|
* @param timestampGranularity The timestampGranularity to set. |
|
|
|
*/ |
|
|
|
public void setTimestampGranularity(Granularity timestampGranularity) { |
|
|
|
if (null == timestampGranularity || "".equals(timestampGranularity.getValue())) { |
|
|
|
if (null == timestampGranularity || timestampGranularity.getValue().isEmpty()) { |
|
|
|
return; |
|
|
|
} |
|
|
|
this.timestampGranularity = timestampGranularity; |
|
|
|