Review Board 1.7.22


SQOOP-759 Sqoop2: Loading client resource file is failing on ResourceBundle not found exception

Review Request #8530 - Created Dec. 11, 2012 and submitted

Jarek Cecho
SQOOP-759
Reviewers
Sqoop
sqoop-sqoop2
We've been asking ResourceBundle object twice, so I've removed the second call.
Tested on real cluster.
client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java
Revision 6b632cb New Change
[20] 110 lines
[+20] [+] public static void main (String[] args) throws Exception
111

    
   
111

   
112
    if(rcFile.exists()) {
112
    if(rcFile.exists()) {
113
      shell.getIo().out.println(MessageFormat.format(clientResource.getString
113
      shell.getIo().out.println(MessageFormat.format(clientResource.getString
114
          (Constants.RES_SQOOP_PROMPT_SHELL_LOADRC), RC_FILE));
114
          (Constants.RES_SQOOP_PROMPT_SHELL_LOADRC), RC_FILE));
115
      interpretFileContent(rcFile, shell);
115
      interpretFileContent(rcFile, shell);
116
      shell.getIo().out.println(clientResource.getString(clientResource.getString
116
      shell.getIo().out.println(clientResource.getString(Constants.RES_SQOOP_PROMPT_SHELL_LOADEDRC));
117
          (Constants.RES_SQOOP_PROMPT_SHELL_LOADEDRC)));

   
118
    }
117
    }
119

    
   
118

   
120
    if (args.length == 0) {
119
    if (args.length == 0) {
121
      // Interactive mode:
120
      // Interactive mode:
122
      shell.getIo().setVerbosity(Verbosity.QUIET);
121
      shell.getIo().setVerbosity(Verbosity.QUIET);
[+20] [20] 52 lines
  1. client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java: Loading...