You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 23, 2026. It is now read-only.
I am using SpawnProcessTask to start embedded server in my application. Following is the gradle task:-
task startServer(group: "Exec", description: 'Starts the service in the background', type: SpawnProcessTask, dependsOn: 'createCapsule') {
command "java -jar ${projectDir}/build/libs/capsule.jar server ${projectDir}/config/local.yml"
ready 'org.eclipse.jetty.server.Server: Started'
directory "."
}
The above task performs perfectly fine on linux but fails on windows. Following is the exception I am getting:-
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':startServer'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED