-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: Does not spawn process to start server on windows #9
Comments
The same issue, @Vishal-Joshi have you fix this issue? |
Hi @storytime, I could not find a fix for it :(. The only way I temporarily made it working is to run the jar through terminal which of course, consumes the terminal. |
I see I'm not the only one experiencing this issue. I've got it working successfully on Linux and Mac for controlling the PhantomJS webdriver, but I get the same error above when trying to run it on Windows. |
The problem is in this part of code:
In Windows would be necessary change to:
|
@paulocardoso can you please tell me in which file should i change the pidField declaration in windows |
I also would like this to be fixed. |
I noticed @echovue appears to have implemented a fix for this, I'm hoping he will submit a pull request for his fix |
👍 to fix this, faced the issue too |
I'm still working on the fix... Seems like I get close, and then run into something else. Right now, I'm buried in the bowels of trying to use JNA to retrieve the Windows PID. Hopefully I'll have that figured out soon though. |
Hi, Any update on the issue? |
I have implemented starting/killing process on Windows. Could someone with write access review and merge the pull request, please? I could also update gradle version in a project to at list 4.8.1 if nobody would argue against that. |
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
The text was updated successfully, but these errors were encountered: