Skip to content
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

#95 Adapt example to conform to GLSPServerLauncher refactoring #62

Merged
merged 2 commits into from
Aug 14, 2020

Conversation

tortmayr
Copy link
Contributor

Add launch configs for Eclipse
Requires: eclipse-glsp/glsp-server/pull/69
Part of: eclipse-glsp/glsp#95

Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good to me, thank you Tobias! I just have some minor comments which you may address and the change might be updated if the server change is updated as well but overall it looks good and works well. Love the much better name of the launcher now and the shared launch configs!


} catch (ParseException | IOException ex) {
System.out.println("Server start failed!");
ex.printStackTrace();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it on purpose that this is a mix of sys.err and sys.out? Cause you could print the stacktrace to sys.out as well by simply handing it in as a parameter.


try {
CLIParser parser = new CLIParser(args, cliOptions, processName);
if (parser.optionExists("h")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Extract 'h' as constant or use from server change if available.

public static void main(final String[] args) {
String processName = "WorkflowExampleGlspServer";
Options cliOptions = CLIParser.getDefaultCLIOptions();
cliOptions.addOption(new Option("w", "websocket", false, "Use websocket launcher instead of default"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Extract 'w' as constant to avoid risk of rename-mismatches.

@martin-fleck-at martin-fleck-at merged commit 8617786 into master Aug 14, 2020
@martin-fleck-at martin-fleck-at deleted the tortmayr/issues/95 branch August 14, 2020 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants