File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/compiler/scala/tools/ant/templates Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 8686TOOL_CLASSPATH=" @classpath@"
8787if [[ -z " $TOOL_CLASSPATH " ]]; then
8888 for ext in " $SCALA_HOME " /lib/* ; do
89- if [[ -z " $TOOL_CLASSPATH " ]]; then
90- TOOL_CLASSPATH=" $ext "
91- else
92- TOOL_CLASSPATH=" ${TOOL_CLASSPATH}${SEP}${ext} "
89+ file_extension=" ${ext##* .} "
90+ # SI-8967 Only consider directories and files named '*.jar'
91+ if [[ -d " $ext " || $file_extension == " jar" ]]; then
92+ if [[ -z " $TOOL_CLASSPATH " ]]; then
93+ TOOL_CLASSPATH=" $ext "
94+ else
95+ TOOL_CLASSPATH=" ${TOOL_CLASSPATH}${SEP}${ext} "
96+ fi
9397 fi
9498 done
9599fi
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ if defined _JAVA_PARAMS set _JAVA_OPTS=%_JAVA_OPTS% %_JAVA_PARAMS%
128128
129129set _TOOL_CLASSPATH=@classpath@
130130if "%_TOOL_CLASSPATH%"=="" (
131- for %%f in ("!_SCALA_HOME!\lib\*") do call :add_cpath "%%f"
131+ for %%f in ("!_SCALA_HOME!\lib\*.jar ") do call :add_cpath "%%f"
132132 for /d %%f in ("!_SCALA_HOME!\lib\*") do call :add_cpath "%%f"
133133)
134134
You can’t perform that action at this time.
0 commit comments