sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: SQOOP-982: Sqoop2: Allow user to pass custom parameters to catalina.sh
Date Wed, 17 Apr 2013 02:20:04 GMT
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 <jarcec@apache.org>
Authored: Tue Apr 16 19:19:29 2013 -0700
Committer: Jarek Jarcec Cecho <jarcec@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)


Mime
View raw message