8251193: bin/idea.sh is generating wrong folder definitions for JVMCI modules

Co-authored-by: Galder Zamarreno <galder@redhat.com>
Reviewed-by: mcimadamore
This commit is contained in:
Severin Gehwolf 2020-09-07 16:18:45 +00:00
parent 70d5cac961
commit 8d6d43c33b

View File

@ -184,7 +184,18 @@ for root in $MODULE_ROOTS; do
elif [ "x$WSL_DISTRO_NAME" != "x" ]; then elif [ "x$WSL_DISTRO_NAME" != "x" ]; then
root=`wslpath -am $root` root=`wslpath -am $root`
fi fi
VM_CI="jdk.internal.vm.ci/share/classes"
VM_COMPILER="src/jdk.internal.vm.compiler/share/classes"
if test "${root#*$VM_CI}" != "$root" || test "${root#*$VM_COMPILER}" != "$root"; then
for subdir in "$root"/*; do
if [ -d "$subdir" ]; then
SOURCES=$SOURCES" $SOURCE_PREFIX""$subdir"/src"$SOURCE_POSTFIX"
fi
done
else
SOURCES=$SOURCES" $SOURCE_PREFIX""$root""$SOURCE_POSTFIX" SOURCES=$SOURCES" $SOURCE_PREFIX""$root""$SOURCE_POSTFIX"
fi
done done
add_replacement "###SOURCE_ROOTS###" "$SOURCES" add_replacement "###SOURCE_ROOTS###" "$SOURCES"