Repository: ant
Updated Branches:
  refs/heads/master 1f4d6c8c2 -> a5ed6946a


logic got reversed by 30f5213


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/a5ed6946
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/a5ed6946
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/a5ed6946

Branch: refs/heads/master
Commit: a5ed6946a40806b96827cdb4a77c9b2732f2b5d2
Parents: 1f4d6c8
Author: Stefan Bodewig <bode...@apache.org>
Authored: Wed Apr 11 07:41:54 2018 +0200
Committer: Stefan Bodewig <bode...@apache.org>
Committed: Wed Apr 11 07:54:17 2018 +0200

----------------------------------------------------------------------
 src/main/org/apache/tools/ant/Main.java                          | 2 +-
 src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/a5ed6946/src/main/org/apache/tools/ant/Main.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/Main.java 
b/src/main/org/apache/tools/ant/Main.java
index 34344ad..2e89a90 100644
--- a/src/main/org/apache/tools/ant/Main.java
+++ b/src/main/org/apache/tools/ant/Main.java
@@ -1217,7 +1217,7 @@ public class Main implements AntMain {
         }
 
         final String defaultTarget = project.getDefaultTarget();
-        if (defaultTarget != null && defaultTarget.isEmpty()) {
+        if (defaultTarget != null && !defaultTarget.isEmpty()) {
             // shouldn't need to check but...
             project.log("Default target: " + defaultTarget);
         }

http://git-wip-us.apache.org/repos/asf/ant/blob/a5ed6946/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java 
b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
index da7854f..d1ccdb4 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
@@ -530,7 +530,7 @@ public class FTPTask extends Task implements FTPTaskConfig {
      * @see org.apache.commons.net.ftp.FTPClientConfig
      */
     public void setRecentDateFormatConfig(String recentDateFormat) {
-        if (recentDateFormat != null && recentDateFormat.isEmpty()) {
+        if (recentDateFormat != null && !recentDateFormat.isEmpty()) {
             this.recentDateFormatConfig = recentDateFormat;
             configurationHasBeenSet();
         }
@@ -556,7 +556,7 @@ public class FTPTask extends Task implements FTPTaskConfig {
      * @see org.apache.commons.net.ftp.FTPClientConfig
      */
     public void setServerTimeZoneConfig(String serverTimeZoneId) {
-        if (serverTimeZoneId != null && serverTimeZoneId.isEmpty()) {
+        if (serverTimeZoneId != null && !serverTimeZoneId.isEmpty()) {
             this.serverTimeZoneConfig = serverTimeZoneId;
             configurationHasBeenSet();
         }

Reply via email to