Skip to content

Commit

Permalink
container: add plugin classpath if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Nov 12, 2024
1 parent fff8b79 commit 404dc6d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/tar/src/main/container/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ fi
echo $DOMAIN

DCACHE_HOME=${DCACHE_INSTALL_DIR}
export CLASSPATH=${DCACHE_HOME}/share/classes/*

PLUGINS_CLASSPATH=""
if [ -d ${DCACHE_HOME}/share/plugins ]
then
PLUGINS_CLASSPATH=`find ${DCACHE_HOME}/share/plugins -type f -name \*.jar -printf "%p:"`
fi

export CLASSPATH=${DCACHE_HOME}/share/classes/*:${PLUGINS_CLASSPATH}


# we hope that there is only one agent file and it the right one
ASPECT_AGENT=`ls ${DCACHE_HOME}/share/classes/aspectjweaver-*.jar`
Expand Down

0 comments on commit 404dc6d

Please sign in to comment.