diff --git a/CHANGELOG.md b/CHANGELOG.md index ca7a80f9..468d0183 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - EMFModelStateImpl and EMFNotationModelStateImpl classes have been added - Related Modules have been updated to inject these GModelState sub-types as a Singleton - [validation] Add explicit support and API for live and batch validation [#200](https://github.com/eclipse-glsp/glsp-server/pull/200) +- [server] Default ports have changed from 5007 (and 8081 for websockets) to 0, which implies autoassignment by the OS [#198](https://github.com/eclipse-glsp/glsp-server/pull/198) ## [v1.0.0 - 30/06/2022](https://github.com/eclipse-glsp/glsp-server/releases/tag/v1.0.0) diff --git a/README.md b/README.md index aa35aba6..f161f854 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ To run the Workflow Diagram example server standalone JAR, run this command in y -j,--jettyLogLevel Set the log level for the Jetty websocket server. [default='INFO'] -l,--logLevel Set the log level. [default='INFO'] - -p,--port Set server port. [default='5007'] + -p,--port Set server port. [default='0'] -w,--websocket Use websocket launcher instead of default launcher. ``` diff --git a/examples/org.eclipse.glsp.example.workflow/Start_Workflow_Example_Server.launch b/examples/org.eclipse.glsp.example.workflow/Start_Workflow_Example_Server.launch index 808f9988..7717239f 100644 --- a/examples/org.eclipse.glsp.example.workflow/Start_Workflow_Example_Server.launch +++ b/examples/org.eclipse.glsp.example.workflow/Start_Workflow_Example_Server.launch @@ -11,7 +11,7 @@ - + diff --git a/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/utils/LaunchUtil.java b/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/utils/LaunchUtil.java index f3bf365b..ca7fa01d 100644 --- a/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/utils/LaunchUtil.java +++ b/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/utils/LaunchUtil.java @@ -48,7 +48,7 @@ public final class LaunchUtil { private LaunchUtil() {} public static final class DefaultOptions { - public static final int SERVER_PORT = 5007; + public static final int SERVER_PORT = 0; public static final Level LOG_LEVEL = Level.INFO; public static final String LOG_DIR = new File("./logs/").getAbsolutePath(); public static final boolean CONSOLE_LOG_ENABLED = true;