hotfix/transitive_dependency_detection_in_jdep #32

Merged
David merged 2 commits from hotfix/transitive_dependency_detection_in_jdep into master 2025-01-17 11:31:48 +01:00
Showing only changes of commit 9c37c9d46c - Show all commits

2
warp4j
View File

@ -685,7 +685,7 @@ if [[ $JAVA_DISTRO_TYPE == $DISTRO_TYPE_JDK ]]; then
if [ -n "$CLASS_PATH" ]
then
echo "Using given classpaths: $CLASS_PATH"
MODULES=$($JDEPS --class-path=$CLASS_PATH --print-module-deps --ignore-missing-deps --multi-release $JAVA_VERSION_BASE $JAR | grep -v Warning)
MODULES=$($JDEPS --class-path $CLASS_PATH --ignore-missing-deps --list-deps --multi-release $JAVA_VERSION_BASE $JAR | awk '{print $1}' | grep -Ev '^(Warning|Error:|Not\sfound|.*\.jar$|ch\.|com\.|org\.)' | sort -u | paste -sd, -)
elif [ "$AUTO_CLASS_PATH" ]
then
echo "Extracting jar file to get classpath"