| Current Path : /bin/ |
| Current File : //bin/build-classpath-directory |
#!/bin/bash
#
# Small script to build a classpath from a directory
#
# JPackage Project <http://www.jpackage.org/>
#
for i in "$@"; do
_JARS=$(find "$i" -name "*.jar" -xtype f -printf %p: 2>/dev/null)
_CLASSPATH=$_CLASSPATH$_JARS
done
_CLASSPATH="$(echo $_CLASSPATH | sed 's+:$++g')"
echo "$_CLASSPATH"