Review Board 1.7.22


SQOOP-1039 ShowVersionFunction default action for 'show version'

Review Request #11363 - Created May 24, 2013 and submitted

Mengwei Ding
SQOOP-1039
Reviewers
Sqoop
abe, hshreedharan, jarcec
sqoop-sqoop2
commit 445fc43b8a451fc968adbd956cd5cc62d26c46e2
Author: Mengwei Ding <mengwei.ding@cloudera.com>
Date:   Thu May 23 17:47:12 2013 -0700

    SQOOP-1039 ShowVersionFunction default action for 'show version'

:100644 100644 1038116... 7586e13... M	client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java
run maven integration test.
client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java
Revision 1038116f1315e1a90b31e6793271199f57fa0beb New Change
[20] 79 lines
[+20] [+] public Object executeFunction(CommandLine line) {
80
    return null;
80
    return null;
81
  }
81
  }
82

    
   
82

   
83
  private void showVersion(boolean server, boolean client, boolean protocol) {
83
  private void showVersion(boolean server, boolean client, boolean protocol) {
84

    
   
84

   

    
   
85
    // If no option has been given, print out client version as default

    
   
86
    if (!client && !server && !protocol) {

    
   
87
      client = true;

    
   
88
    }

    
   
89

   
85
    // Print out client string if needed
90
    // Print out client string if needed
86
    if (client) {
91
    if (client) {
87
      printlnResource(Constants.RES_SHOW_PROMPT_VERSION_CLIENT_SERVER,
92
      printlnResource(Constants.RES_SHOW_PROMPT_VERSION_CLIENT_SERVER,
88
        Constants.OPT_CLIENT,
93
        Constants.OPT_CLIENT,
89
        VersionInfo.getVersion(),
94
        VersionInfo.getVersion(),
[+20] [20] 33 lines
  1. client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java: Loading...