ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject [1/2] git commit: ARGUS-55: Modified to show password only if installation is called with -Ddebug=true on the credential command to encrypt the password
Date Mon, 15 Sep 2014 14:25:51 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master b1370f3a5 -> bf6402e3a


ARGUS-55: Modified to show password only if installation is called with -Ddebug=true on the
credential command to encrypt the password


Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/7c1f9f90
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/7c1f9f90
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/7c1f9f90

Branch: refs/heads/master
Commit: 7c1f9f90aa88779c4522894c47094feadbd3f80d
Parents: c3513b2
Author: sneethiraj <sneethir@apache.org>
Authored: Mon Sep 15 08:16:53 2014 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Mon Sep 15 08:16:53 2014 -0400

----------------------------------------------------------------------
 .../java/com/hortonworks/credentialapi/buildks.java   | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7c1f9f90/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java
----------------------------------------------------------------------
diff --git a/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java b/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java
index f5c25f9..257e311 100644
--- a/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java
+++ b/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java
@@ -315,14 +315,16 @@ public class buildks {
 	
 	public static void displayCommand(String args[])
     {
-		StringBuffer tempBuffer=new StringBuffer("");
-		if(args!=null && args.length>0){
-			for(int index=0;index<args.length;index++){
-				tempBuffer.append(args[index]+" ");
+		String debugOption = System.getProperty("debug") ;
+		if (debugOption != null && "TRUE".equalsIgnoreCase(debugOption)) {
+			StringBuffer tempBuffer=new StringBuffer("");
+			if(args!=null && args.length>0){
+				for(int index=0;index<args.length;index++){
+					tempBuffer.append(args[index]+" ");
+				}
+				System.out.println("Command to execute:["+tempBuffer+"]");
 			}
-			System.out.println("Command to execute:["+tempBuffer+"]");
 		}
-		
     }
 	
 	public static void displaySyntax()


Mime
View raw message