How to dynamically build a Java Classpath in a Bourne Shell script

1 view
Skip to first unread message

tommy xiao

unread,
Feb 19, 2009, 10:23:25 PM2/19/09
to Coder...@googlegroups.com
#---------------------------------#
# dynamically build the classpath #
#---------------------------------#
THE_CLASSPATH=
for i in `ls ./lib/*.jar`
do
THE_CLASSPATH=${THE_CLASSPATH}:${i}
done

参考:
http://www.devdaily.com/blog/post/linux-unix/dynamically-build-java-classpath-in-bourne-shell-script/
Reply all
Reply to author
Forward
0 new messages