Uploaded image for project: 'OpenMRS SDK'
  1. OpenMRS SDK
  2. SDK-198

Run should ask for port if it is taken

    XMLWordPrintable

    Details

    • Complexity:
      Medium

      Description

      If another server is running on the selected port when calling run, ask the user:

      "The server port PORT_NUMBER is taken by another process. What other port would you like to use? (default: PORT_NUMBER + 1): "

      The server port is passed here https://github.com/openmrs/openmrs-sdk/blob/master/maven-plugin/src/main/java/org/openmrs/maven/plugins/Run.java#L160

      You need to find a way to check if the port is taken or not before passing it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gkaretka Gregor Karetka
              Reporter:
              raff Rafal Korytkowski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: