You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sqoop.apache.org by ja...@apache.org on 2013/04/17 04:20:04 UTC

git commit: SQOOP-982: Sqoop2: Allow user to pass custom parameters to catalina.sh

Updated Branches:
  refs/heads/sqoop2 0a6fcce58 -> a69b1cc66


SQOOP-982: Sqoop2: Allow user to pass custom parameters to catalina.sh

(Mark Grover via Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/a69b1cc6
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/a69b1cc6
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/a69b1cc6

Branch: refs/heads/sqoop2
Commit: a69b1cc6639ca512cf57905e4d2e04ade4c37879
Parents: 0a6fcce
Author: Jarek Jarcec Cecho <ja...@apache.org>
Authored: Tue Apr 16 19:19:29 2013 -0700
Committer: Jarek Jarcec Cecho <ja...@apache.org>
Committed: Tue Apr 16 19:19:29 2013 -0700

----------------------------------------------------------------------
 dist/src/main/bin/sqoop.sh |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/a69b1cc6/dist/src/main/bin/sqoop.sh
----------------------------------------------------------------------
diff --git a/dist/src/main/bin/sqoop.sh b/dist/src/main/bin/sqoop.sh
index 2b27cdb..f1711ee 100755
--- a/dist/src/main/bin/sqoop.sh
+++ b/dist/src/main/bin/sqoop.sh
@@ -44,8 +44,13 @@ case $COMMAND in
       echo "Usage: sqoop.sh server <start/stop>"
       exit
     fi
+    actionCmd=$2
+    # Remove the first 2 command line arguments so we can pass
+    # the rest to catalina.sh script
+    shift
+    shift
 
-    $CATALINA_BIN/catalina.sh $2
+    $CATALINA_BIN/catalina.sh $actionCmd "$@"
     ;;
 
   client)