More General posts
April 01, 2003
Foolish Shell Tricks
Quickly build a classpath from the jar files in a single directory.
-classpath `ls -1 ../build/lib/*.jar | tr '\n' ':'`
If you have more than one directory to deal with then you can just add them to the ls command.
-classpath `ls -1 ../build/lib/*.jar lib/*.jar | tr '\n' ':'`
Comments
Post a comment