BefatorNix/ant/ivyDepHook.sh
2025-09-07 21:28:57 +02:00

22 lines
532 B
Bash

#echo "IVY DEP HOOK!!!"
#build/.ivy2/local/ant/ant/1.6/jars/ant.jar
: "${IVY_DEPS:=}"
for dep in $IVY_DEPS; do
nameVar="IVY_NAME_${dep}"
orgVar="IVY_ORG_${dep}"
versionVar="IVY_VERSION_${dep}"
sourceVar="IVY_SOURCE_${dep}"
name="${!nameVar}"
org="${!orgVar}"
version="${!versionVar}"
source="${!sourceVar}"
path="/build/.ivy2/local/$org/$name/$version/jars"
file="$path/$name.jar"
echo "Registering Ivy Dependency: $file -> $source"
mkdir -p $path
ln -s "$source" "$file"
done