From http://unix-simple.blogspot.com/2008/12/dynamically-building-java-classpaths.html
for line in $java_dir/*.jar
do
CLASSPATH="$CLASSPATH:$line"
done
Lets put AWK to iterate:
CLASSPATH=$CLASSPATH:$(ls *.jar | awk 'BEGIN { ORS = ":" } { print }')
Maybe a shellish way of do it:
CLASSPATH=$CLASSPATH:`echo *.jar | sed 's/ /:/g'`
Showing posts with label CLASSPATH. Show all posts
Showing posts with label CLASSPATH. Show all posts
Friday, June 24, 2011
Subscribe to:
Posts (Atom)