[jboss-cvs] JBossAS SVN: r106764 - branches/JBPAPP_5_1/security/src/main/org/jboss/security/integration/password.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jul 15 13:29:58 EDT 2010


Author: mmoyses
Date: 2010-07-15 13:29:57 -0400 (Thu, 15 Jul 2010)
New Revision: 106764

Modified:
   branches/JBPAPP_5_1/security/src/main/org/jboss/security/integration/password/PasswordTool.java
Log:
JBPAPP-4664: refactoring command line processing

Modified: branches/JBPAPP_5_1/security/src/main/org/jboss/security/integration/password/PasswordTool.java
===================================================================
--- branches/JBPAPP_5_1/security/src/main/org/jboss/security/integration/password/PasswordTool.java	2010-07-15 17:24:33 UTC (rev 106763)
+++ branches/JBPAPP_5_1/security/src/main/org/jboss/security/integration/password/PasswordTool.java	2010-07-15 17:29:57 UTC (rev 106764)
@@ -61,6 +61,7 @@
          System.out.println("Error while trying to load data:"+e.getMessage());
          System.out.println("Maybe it does not exist and need to be created.");
       }
+      Scanner in = new Scanner(System.in);
       
       while(true)
       { 
@@ -72,7 +73,6 @@
          		"5:Exit";
          
          System.out.println(commandStr);
-         Scanner in = new Scanner(System.in);
          int choice = in.nextInt();
          
          switch(choice)
@@ -210,4 +210,4 @@
          }
       }
    }
-}
\ No newline at end of file
+}



More information about the jboss-cvs-commits mailing list