2014-01-06 12:42:37 +00:00
|
|
|
# This setup hook adds every JAR in the share/java subdirectories of
|
|
|
|
# the build inputs to $CLASSPATH.
|
|
|
|
|
|
|
|
export CLASSPATH
|
|
|
|
|
|
|
|
addPkgToClassPath () {
|
|
|
|
local jar
|
|
|
|
for jar in $1/share/java/*.jar; do
|
|
|
|
export CLASSPATH=''${CLASSPATH}''${CLASSPATH:+:}''${jar}
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2014-07-08 13:20:05 +01:00
|
|
|
envHooks+=(addPkgToClassPath)
|