cruisecontrol (2.7) as a windows service

"Adil Karampurwala" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi all,
 
I tried to run cruise control as aa windows service using "JavaService".
My cruisecontrolservice.bat looks like
 
REM Uncomment the following line if you have OutOfMemoryError errors
REM set CC_OPTS=-Xms128m -Xmx256m
 
REM The root of the CruiseControl directory.  The key requirement is
that this is the parent
REM directory of CruiseControl's lib and dist directories.
REM By default assume they are using the batch file from the local
directory.
REM Acknowledgments to Ant Project for this batch file incantation
REM %~dp0 is name of current script under NT
set DEFAULT_CCDIR=%~dp0
REM : operator works similar to make : operator
set DEFAULT_CCDIR=%DEFAULT_CCDIR%\..
 
if not defined CCDIR set CCDIR=%DEFAULT_CCDIR%
set DEFAULT_CCDIR=
 
:checkJava
if not defined JAVA_HOME goto noJavaHome
set JAVA_PATH="%JAVA_HOME%\bin\java"
goto setCruise
 
:noJavaHome
echo WARNING: You have not set the JAVA_HOME environment variable. Any
tasks relying on the tools.jar file (such as javac) will not work
properly.
set JAVA_PATH=java
 
:setCruise
set LIBDIR=%CCDIR%\lib
set DISTDIR=%CCDIR%\dist
 

set EXEC=CruiseControlService.exe -install "Cruise Control-javaservice"
C:\software\Java\jdk1.5.0_11\jre\bin\server\jvm.dll
-Djava.class.path=E:\cruisecontrol\main\bin
-Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder
-start CruiseControlWithJetty -params %* -jmxport 8000 -out
%CCDIR%\service_out.log -err %CCDIR%\service_err.log -current
E:\cruisecontrol_builds
 
rem echo %CCDIR%
%EXEC%
 
when i executed "E:\cruisecontrol\main\bin>cruisecontrolservice.bat" I
got the following message 

Unrecognised or incorrectly-ordered parameters for install command
The last 2 parameters (from '-current') were not recognised
JavaService install command parameters not valid, or
incompleteE:\cruisecontrol\
main\bin>cruisecontrolservice.bat
 
But the service was installed as "Cruise Control-javaservice". When i
run the service i got following message "Service start and stop.Some
services stop as they have no work to do"
 
Can anybody help me with this.
 
 
 

Regards,


Adil Karampurwala, 


"Legal Disclaimer: This electronic message and all contents contain information from Cybage Software Private Limited which may be privileged, confidential, or otherwise protected from disclosure. The information is intended to be for the addressee(s) only. If you are not an addressee, any disclosure, copy, distribution, or use of the contents of this message is strictly prohibited. If you have received this electronic message in error please notify the sender by reply e-mail to and destroy the original message and all copies. Cybage has taken every reasonable precaution to minimize the risk of malicious content in the mail, but is not liable for any damage you may sustain as a result of any malicious content in this e-mail. You should carry out your own malicious content checks before opening the e-mail or attachment."
www.cybage.com

------------------------------------------------------------------------------

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.