Skip to content

Conversation

@ePaul
Copy link
Contributor

@ePaul ePaul commented Mar 28, 2017

PR checklist

  • Read the contribution guidelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change.
    → bin/jaxrs-jersey1-petstore-server.sh, bin/jaxrs-petstore-server.sh
  • Filed the PR against the correct branch: master for non-breaking changes.

Description of the PR

We are introducing a CLI argument serverPort to the generators which overrides the port given in the API definition's host or the default of 8080.
This we use from the generating scripts, so the CI tests won't try to use 80 (which is usually reserved to privileged processes).

(Triggered by the change in #5232 and the failing tests in #5243.)

@ePaul ePaul mentioned this pull request Mar 28, 2017
3 tasks
@wing328 wing328 merged commit 2830fb1 into swagger-api:master Mar 29, 2017
@wing328 wing328 added this to the v2.2.3 milestone Mar 29, 2017
@wing328
Copy link
Contributor

wing328 commented Mar 29, 2017

@ePaul thanks for the enhancement, which makes it much easier to set the server port.

@ePaul ePaul deleted the pass-server-port-by-cli branch March 29, 2017 17:41
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
* JaxRS server: set serverPort only when not given from outside.

* Update JaxRS sample creator scripts to fix serverPort.

* Preliminary test fix for JaxRS server generators.

* Updating samples for JaxRS with Jersey1/2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants