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' ':'`

Posted by Alex at April 01, 2003 03:02 PM
Comments
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?