File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/com/google/devtools/build/lib/bazel/rules/java Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -314,12 +314,14 @@ function create_and_run_classpath_jar() {
314
314
CLASSPATH_LINE=" Class-Path:$MANIFEST_CLASSPATH "
315
315
# No line in the MANIFEST.MF file may be longer than 72 bytes.
316
316
# A space prefix indicates the line is still the content of the last attribute.
317
- for (( i = 0 ; i < "${# CLASSPATH_LINE} "; i += 71 )) ; do
317
+ IFS=$' \n '
318
+ WRAPPED_LINES=($( echo " $CLASSPATH_LINE " | fold -w 71) )
319
+ for (( i = 0 ; i < "${# WRAPPED_LINES[*]} "; i += 1 )) ; do
318
320
PREFIX=" "
319
321
if (( i == 0 )) ; then
320
322
PREFIX=" "
321
323
fi
322
- echo " $PREFIX ${CLASSPATH_LINE : $i : 71 } "
324
+ echo " $PREFIX ${WRAPPED_LINES[$i] } "
323
325
done
324
326
echo " Created-By: Bazel"
325
327
) > $MANIFEST_FILE
You can’t perform that action at this time.
0 commit comments