maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jackman" <David.Jack...@fastsearch.com>
Subject RE: Maven as service
Date Mon, 01 Aug 2005 16:44:49 GMT
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%\jdom
.jar;%LIBDIR%\ant\ant.jar;%LIBDIR%\xerces.jar;%LIBDIR%\mail.jar;%LIBDIR%
\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:chedly.guerfali@actia.fr] 
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:David.Jackman@fastsearch.com]
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:chedly.guerfali@actia.fr]
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message