Line too long error in ttool-cli/manifest.txt
Summary
macOS 10.14.6 (Mojave)
java 14.0.1 2020-04-14
Java(TM) SE Runtime Environment (build 14.0.1+7)
Java HotSpot(TM) 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)
In branch 2stepApproach, commit 480f85d2, when compiling the CLI with javac 14.0.1 a java.io.IOException: line too long
error is raised.
Steps to reproduce
$ git checkout 2stepApproach
$ make ttoolnotest
...
$ make ttoolcli
make ttool-cli
Gradle was not found. Falling back to regular javac command...
[TTOOLCLI] Compiling
...
java.io.IOException: line too long (line 2)
at java.base/java.util.jar.Attributes.read(Attributes.java:379)
at java.base/java.util.jar.Manifest.read(Manifest.java:290)
at java.base/java.util.jar.Manifest.<init>(Manifest.java:100)
at java.base/java.util.jar.Manifest.<init>(Manifest.java:76)
at jdk.jartool/sun.tools.jar.Main.run(Main.java:268)
at jdk.jartool/sun.tools.jar.Main.main(Main.java:1649)
Example Project
No need for a project.
What is the current bug behavior?
Compilation stops with the above-mentioned error
What is the expected correct behavior?
Compilation shall not fail.
Relevant logs and/or screenshots
See above.
Possible fixes
$ awk '!/^Class-Path:/ {print} /^Class-Path:/ { printf("%s %s\n", $1, $2); for(i = 3; i <= NF; i++) printf(" %s\n", $i); }' ttool-cli/manifest.txt > ttool-cli/manifest.new.txt
$ mv ttool-cli/manifest.new.txt ttool-cli/manifest.txt