You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2016/12/21 19:17:40 UTC
[2/8] ant git commit: "hard coded password"
"hard coded password"
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/0555c6d5
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/0555c6d5
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/0555c6d5
Branch: refs/heads/master
Commit: 0555c6d5f6d17e6861ef5c92d21d19caf2fe4721
Parents: 45152b5
Author: Stefan Bodewig <bo...@apache.org>
Authored: Wed Dec 21 18:50:53 2016 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Wed Dec 21 18:50:53 2016 +0100
----------------------------------------------------------------------
src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/0555c6d5/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java
index 03031d5..c6614cb 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java
@@ -41,7 +41,7 @@ public abstract class SOS extends Task implements SOSCmd {
private String sosCmdDir = null;
private String sosUsername = null;
- private String sosPassword = "";
+ private String sosPassword = null;
private String projectPath = null;
private String vssServerPath = null;
private String sosServerPath = null;
@@ -269,7 +269,7 @@ public abstract class SOS extends Task implements SOSCmd {
* @return empty string if it wasn't set.
*/
protected String getPassword() {
- return sosPassword;
+ return sosPassword == null ? "" : sosPassword;
}
/**