bin/kotlin: better lookup for idea home, fix classpath

This commit is contained in:
Stepan Koltsov
2012-02-27 00:59:27 +04:00
parent eb017d8a2e
commit 230afd367f
+2 -2
View File
@@ -8,7 +8,7 @@ die() {
root=`cd $(dirname $0)/..; pwd` root=`cd $(dirname $0)/..; pwd`
ideaRoot= ideaRoot=
for d in /Applications/Nika-*.app; do for d in $root/ideaSDK /Applications/Nika-*.app; do
if [ -d "$d/lib" ]; then if [ -d "$d/lib" ]; then
ideaRoot="$d" ideaRoot="$d"
break break
@@ -18,7 +18,7 @@ done
test -n "$ideaRoot" || die "Idea root not found" test -n "$ideaRoot" || die "Idea root not found"
classpath="$root/out/production/cli" classpath="$root/out/production/cli"
classpath="$classpath:$root/out/production/backend:$root/out/production/frontend:$root/out/production/frontend.java:$root/out/production/jet.as.java.psi" classpath="$classpath:$root/out/production/backend:$root/out/production/frontend:$root/out/production/frontend.java:$root/out/production/jet.as.java.psi:$root/out/production/util"
classpath="$classpath:$root/out/production/stdlib" classpath="$classpath:$root/out/production/stdlib"
classpath="$classpath:$root/lib/*:$ideaRoot/lib/*:$ideaRoot/lib/rt/*" classpath="$classpath:$root/lib/*:$ideaRoot/lib/*:$ideaRoot/lib/rt/*"