Community
Participate
Working Groups
When using Apache Commons Daemon the prunsrv.exe wrapper, which bridges between Java and the Windows service layer, calls a static method for starting and a static method for stopping. However both start and stop method must have a method signature of "void method ( String [])". While one can argue about the sense of this, it is as it is. Adding a "shutdown" method to "org.eclipse.core.runtime.adaptor.EclipseStarter" which has this method signature would allow to use this class directly with Apache Commons Daemon prunsrv.exe.
(In reply to Jens Reimann from comment #0) > When using Apache Commons Daemon the prunsrv.exe wrapper, which bridges > between Java and the Windows service layer, calls a static method for > starting and a static method for stopping. > > However both start and stop method must have a method signature of "void > method ( String [])". > > While one can argue about the sense of this, it is as it is. Adding a > "shutdown" method to "org.eclipse.core.runtime.adaptor.EclipseStarter" which > has this method signature would allow to use this class directly with Apache > Commons Daemon prunsrv.exe. It seems you were asking for a start/stop method with (String[]) and then a "shutdown" method. Perhaps a patch would be better illustration of what you are requesting?
Here's a post about how SCADA worked around this issue: http://dentrassi.de/2014/02/28/eclipse-equinox-as-a-windows-service/