Start jetty server in the background

wing328hk's Avatar

wing328hk

21 Jul, 2016 03:00 PM

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. Support Staff 1 Posted by Feodor Fitsner on 21 Jul, 2016 04:45 PM

    Feodor Fitsner's Avatar

    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. 2 Posted by wing328hk on 21 Jul, 2016 05:35 PM

    wing328hk's Avatar

    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