Start jetty server in the background

Hi all,

Is anyone aware of any way to start jetty server in the background for integration test?

I'd the following command in my appveyor.yml file:

  - git clone https://github.com/wing328/swagger-samples && cd swagger-samples/java/java-jaxrs && START /MIN /B "" "C:\maven\apache-maven-3.2.5\bin\mvn" jetty:run

But the jetty server runs in the console (not background)

https://ci.appveyor.com/project/WilliamCheng/swagger-codegen/build/csharp_nunit_ci-113

Anyone able to run the Jetty server in the background or as a service?

Thanks,
William

  1. Use Start-Process cmdlet, something like:

    - git clone https://github.com/wing328/swagger-samples
    - ps: Start-Process -FilePath 'C:\maven\apache-maven-3.2.5\bin\mvn' -ArgumentList 'jetty:run' -WorkingDirectory "$env:appveyor_build_folder\swagger-samples\java\java-jaxrs"
    
  2. Thank you for the prompt reply. It works!

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:07 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions