Skip to content

Instantly share code, notes, and snippets.

@hiredman
Created March 2, 2009 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiredman/72895 to your computer and use it in GitHub Desktop.
Save hiredman/72895 to your computer and use it in GitHub Desktop.
## CLASSPATH
refresh-classpath(){
echo "buidling ~/.jars/classpath"
CLASSPATH=`find ~/.jars/ -type f -name \*.jar -print0|xargs -0|sed "s/ /:/g"`
echo "CLASSPATH=${CLASSPATH}" > ~/.jars/classpath
}
if [ -f ~/.jars/classpath ]; then
source ~/.jars/classpath
else
if [ -d ~/.jars/ ]; then
refresh-classpath
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment