biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / build-support / setup-hooks / set-java-classpath.sh
blob445fa56d61deef4a3a01cadb9c8f2f49d205a4db
1 # This setup hook adds every JAR in the share/java subdirectories of
2 # the build inputs to $CLASSPATH.
4 export CLASSPATH
6 addPkgToClassPath () {
7 local jar
8 for jar in $1/share/java/*.jar; do
9 export CLASSPATH=''${CLASSPATH-}''${CLASSPATH:+:}''${jar}
10 done
13 addEnvHooks "$targetOffset" addPkgToClassPath