-
Notifications
You must be signed in to change notification settings - Fork 185
Provide jarmanifest/argfile approachs to shorten the command line #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
...microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/protocol/Requests.java
Outdated
Show resolved
Hide resolved
...microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/protocol/Requests.java
Outdated
Show resolved
Hide resolved
...rosoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/DebugAdapter.java
Show resolved
Hide resolved
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Eskibear
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| } | ||
|
|
||
| try { | ||
| Thread.sleep(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TimeUnit.SECONDS.sleep(1);
|
|
||
| activeLaunchHandler.preLaunch(launchArguments, context); | ||
|
|
||
| Path tempfile = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The body of this function is already long. Please refactor by putting the procedures of generating Jar Manifest and ArgFile into different utility functions. Those functions should be functional without referencing states from other parts. After that the body looks like:
if (launchArguments.shortenCommandLine == ShortenApproach.JARMANIFEST) {
Path path = AdapterUtils.generateClasspathJar(...);
context.setClasspathJar(path);
} else if (...) {
}
Signed-off-by: Jinbo Wang jinbwan@microsoft.com
Fix the bug microsoft/vscode-java-debug#110.
Provide two kinds of approaches jarmanifest and argfile to shorten the command line length.