sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1376667 - /sqoop/branches/sqoop2/dist/src/main/bin/sqoop.sh
Date Thu, 23 Aug 2012 20:01:08 GMT
Author: blee
Date: Thu Aug 23 20:01:08 2012
New Revision: 1376667

URL: http://svn.apache.org/viewvc?rev=1376667&view=rev
Log:
SQOOP-573: Do not change working directory for client

Modified:
    sqoop/branches/sqoop2/dist/src/main/bin/sqoop.sh

Modified: sqoop/branches/sqoop2/dist/src/main/bin/sqoop.sh
URL: http://svn.apache.org/viewvc/sqoop/branches/sqoop2/dist/src/main/bin/sqoop.sh?rev=1376667&r1=1376666&r2=1376667&view=diff
==============================================================================
--- sqoop/branches/sqoop2/dist/src/main/bin/sqoop.sh (original)
+++ sqoop/branches/sqoop2/dist/src/main/bin/sqoop.sh Thu Aug 23 20:01:08 2012
@@ -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
     ;;
 



Mime
View raw message