File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,35 @@ IFS=':=' read -ra versionProps < "$ROOT/$DIST_DIR/target/pack/VERSION" # tempora
2424 [ -n ${versionProps[2]} ] || die " Expected non-empty 'version' property in $ROOT /$DIST_DIR /target/pack/VERSION"
2525scala_version=${versionProps[2]}
2626
27+ # TEMPORARY DEBUG INFO IN CI - REMOVE WHEN DONE
28+ echo " WRITE CLASSPATHS TO OUTPUT"
29+ SCALA_CLASSPATH_CONTENT=$( cat " $ROOT /$DIST_DIR /target/pack/etc/scala.classpath" )
30+ echo -e " > scala.classpath:\n$SCALA_CLASSPATH_CONTENT "
31+ SCALADOC_CLASSPATH_CONTENT=$( cat " $ROOT /$DIST_DIR /target/pack/etc/scaladoc.classpath" )
32+ echo -e " > scaladoc.classpath:\n$SCALADOC_CLASSPATH_CONTENT "
33+
34+ load_classpath_2 () {
35+ command=" $1 "
36+ psep_pattern=" $2 "
37+ __LOADED_CLASS_PATH=" "
38+ while IFS= read -r line; do
39+ if ! [[ (-n ${conemu-} || -n ${msys-} ) && " $line " == " *jna-5*" ]]; then
40+ # jna-5 only appropriate for some combinations
41+ __LOADED_CLASS_PATH+=" $ROOT /$DIST_DIR /target/pack/maven2/$line$psep_pattern "
42+ fi
43+ done < " $ROOT /$DIST_DIR /target/pack/etc/$command .classpath"
44+ echo " $__LOADED_CLASS_PATH "
45+ }
46+
47+ SCALA_CLASSPATH_CONTENT_CONCAT=$( load_classpath_2 " scala" " :" )
48+
49+ echo -e " > scala classpath concat:\n$SCALA_CLASSPATH_CONTENT_CONCAT "
50+
51+ SCALADOC_CLASSPATH_CONTENT_CONCAT=$( load_classpath_2 " scaladoc" " :" )
52+
53+ echo -e " > scaladoc classpath concat:\n$SCALADOC_CLASSPATH_CONTENT_CONCAT "
54+
55+
2756# check that `scalac` compiles and `scala` runs it
2857echo " testing ./bin/scalac and ./bin/scala"
2958clear_out " $OUT "
You can’t perform that action at this time.
0 commit comments