Thanks for both David and Stephane, unfortunatly and after trying both solutions, my problem is remaining: the java process lauched with Maven is interrupted when a user logs out and the java process lauched by CruiseControl still running.So the entire process is suddenly stopped at a certain goal then I have the artifactpublisher. Unbelievable isn't it!!!
Chedly -----Message d'origine----- De : David Jackman [mailto:[EMAIL PROTECTED] Envoyé : mardi 2 août 2005 16:22 À : Maven Users List Objet : RE: Maven as service Yes. That was the page I used to get CC running as a service so long ago (it's been so long I forgot where it was). In the script I included the -params %* part is where the config file comes gets set. Everything after -params is used as command line parameters when starting CC. %* is a variable for DOS batch files that gets replaced with all of the batch file parameters. So when you run my script with the parameters -configfile <name> [-port <port>] (as the document says), these parameters get included there. ..David.. -----Original Message----- From: Stephane Nicoll [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 3:55 AM To: Maven Users List Subject: Re: Maven as service See doco: http://confluence.public.thoughtworks.org/display/CC/RunningCruiseControlAsa WindowsService Cheers, Stéphane On 8/2/05, Chedly GUERFALI <[EMAIL PROTECTED]> wrote: > Thank you very much David, > but where do you pass the configfile parameter to the cruisecontrol > service ? > Do you launch a script containing the "cruisecontrol -configfile XXX" chain? > > Chedly > > -----Message d'origine----- > De : David Jackman [mailto:[EMAIL PROTECTED] > Envoye : lundi 1 aout 2005 18:45 > A : Maven Users List > Objet : RE: Maven as service > > > The account user name and password that the service runs under isn't > set on the command line for the executable, but in the settings for > the service (in the service administration). > > The script I used to install the CC service looks like this: > -------------------------- > set LIBDIR=%CCDIR%\lib > set DISTDIR=%CCDIR%\dist > > if "%CURRENT%"=="" set CURRENT=%CD% > > set > CRUISE_PATH=%DISTDIR%\cruisecontrol.jar;%LIBDIR%\log4j.jar;%LIBDIR%\jd > om > .jar;%LIBDIR%\ant\ant.jar;%LIBDIR%\xerces.jar;%LIBDIR%\mail.jar;%LIBDI > R% > \ant\ant-junit.jar;%LIBDIR%\junit.jar;%LIBDIR%\activation.jar;%LIBDIR% > \m > x4j.jar;. > > CruiseControlService.exe -install "Cruise Control" > %JAVA_HOME%\jre\bin\hotspot\jvm.dll "-Djava.class.path=%CRUISE_PATH%" > -start CruiseControl -params %* -out %CURRENT%\service_out.log -err > %CURRENT%\service_err.log -current %CURRENT% > --------------------------- > With CCDIR == my CruiseControl install directory, and CURRENT == the > current directory for when CC runs. > > Hope this helps. > ..David.. > > > -----Original Message----- > From: Chedly GUERFALI [mailto:[EMAIL PROTECTED] > Sent: Monday, August 01, 2005 8:45 AM > To: Maven Users List > Subject: RE: Maven as service > > Thank you David for this help, > I tried the JavaService Software and I noticed that it doesn't accept > much parameters like service account and service password. Would you > giging me in examlple your script for launching CC and Maven. > Thank you. > > Chedly > > -----Message d'origine----- > De : David Jackman [mailto:[EMAIL PROTECTED] > Envoye : lundi 1 aout 2005 15:09 > A : Maven Users List > Objet : RE: Maven as service > > > I'm also running CruiseControl with Maven in this way, but haven't > seen this problem at all. I've never had a problem when logging out > of the machine. I'm using something I downloaded some time ago called > JavaService.exe (Java NT Service Adaptor); I'm on version 1.2.3.0. > > > > -----Original Message----- > From: Chedly GUERFALI [mailto:[EMAIL PROTECTED] > Sent: Monday, August 01, 2005 3:16 AM > To: MAVEN > Subject: Maven as service > > Hello All, > I am using CruiseControl as a service with the Java Wrapper Service. > CruiseControl launches the Maven goals and everything works ok. The > problem comes when somebody using the computer logs out. the JVM used > by CruiseControl igores the log out, but the JVM used by Maven stoppes > because of the system listener. I tried thus to set Maven as a > service, but it doesn't work. Does anyone has the same problem which could help? > Thanks in advance. > > Chedly > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- .::You're welcome ::. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]