Skip to content

Instantly share code, notes, and snippets.

@fizx
Created February 3, 2010 22:01
Show Gist options
  • Select an option

  • Save fizx/294079 to your computer and use it in GitHub Desktop.

Select an option

Save fizx/294079 to your computer and use it in GitHub Desktop.
jcp
#!/bin/sh
# Recursively generates a list of child jars for the folders provided
# and puts them into a colon-delimited list for the -cp option
#
# Example:
# java -cp `jcp lib dist` com.qf.SomeScript
#
find $@ -name "*.jar" | xargs | sed "s/ /:/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment