5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-06 17:20:31 +08:00

SQOOP-573: Do not change working directory for client

git-svn-id: https://svn.apache.org/repos/asf/sqoop/branches/sqoop2@1376667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bilung Lee 2012-08-23 20:01:08 +00:00
parent c32afa5aea
commit fcef44e4d4

View File

@ -46,10 +46,14 @@ case $COMMAND in
;;
client)
# Build class path with full path to each library
for f in client/lib/*.jar; do
CLASSPATH=${CLASSPATH}:$f;
CLASSPATH=${CLASSPATH}:`readlink -f $f`;
done
# We need to change current directory back to original as optional user side script
# might be specified with relative path.
cd ${OLD_DIR}
java -classpath ${CLASSPATH} org.apache.sqoop.client.shell.SqoopShell $2
;;