We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c287aef commit 8b77258Copy full SHA for 8b77258
java_stub_template/file/file.txt
@@ -314,12 +314,14 @@ function create_and_run_classpath_jar() {
314
CLASSPATH_LINE="Class-Path:$MANIFEST_CLASSPATH"
315
# No line in the MANIFEST.MF file may be longer than 72 bytes.
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
+ IFS=$'\n'
318
+ WRAPPED_LINES=($(echo "$CLASSPATH_LINE" | fold -w 71))
319
+ for ((i = 0; i < "${#WRAPPED_LINES[*]}"; i += 1)); do
320
PREFIX=" "
321
if ((i == 0)); then
322
PREFIX=""
323
fi
- echo "$PREFIX${CLASSPATH_LINE:$i:71}"
324
+ echo "$PREFIX${WRAPPED_LINES[$i]}"
325
done
326
echo "Created-By: Bazel"
327
) >$MANIFEST_FILE
0 commit comments