DRILL-153 - fixed classpath computation oscon_workshop
authorTed Dunning <tdunning@apache.org>
Mon, 22 Jul 2013 00:35:33 +0000 (17:35 -0700)
committerTed Dunning <tdunning@apache.org>
Mon, 22 Jul 2013 00:35:33 +0000 (17:35 -0700)
sandbox/prototype/sqlline

index 9baab78..98fc569 100755 (executable)
@@ -8,7 +8,7 @@
 # Build classpath on first call. (To force rebuild, remove .classpath.)
 if [ ! -f .classpath ]; then
     (cd sqlparser; mvn dependency:build-classpath -Dmdep.outputFile=../.classpath)
-    find . -type d -name classes |awk 'BEGIN {ORS=":"} {print}' >> .classpath
+    echo -n :sqlparser/target/classes/ >> .classpath
 fi
 
 exec java -cp "$(cat .classpath)" sqlline.SqlLine "$@"