I have a problem with cruisecontrol where an ant scripts executes a bat file that doesn't give me the prompt back. As a result, the project in cruisecontrol keeps on bulding forever until I restart cruisecontrol. How can I resolve this?
It's a startup.bat from wowza (Streaming Server) that I'm executing:
@echo off
call setenv.bat
if not %WMSENVOK% == "true" goto end
set _WINDOWNAME="Wowza Media Server 2"
set _EXESERVER=
if "%1"=="newwindow" (
set _EXESERVER=start %_WINDOWNAME%
shift
)
set CLASSPATH="%WMSAPP_HOME%\bin\wms-bootstrap.jar"
rem cacls jmxremote.password /P username:R
rem cacls jmxremote.access /P username:R
rem NOTE: Here you can configure the JVM's built in JMX interface.
rem See the "Server Management Console and Monitoring" chapter
rem of the "User's Guide" for more information on how to configure the
rem remote JMX interface in the [install-dir]/conf/Server.xml file.
set JMXOPTIONS=-Dcom.sun.managemen开发者_Python百科t.jmxremote=true
rem set JMXOPTIONS=%JMXOPTIONS%
-Djava.rmi.server.hostname=192.168.1.7
rem set JMXOPTIONS=%JMXOPTIONS%
-Dcom.sun.management.jmxremote.port=1099
rem set JMXOPTIONS=%JMXOPTIONS%
-Dcom.sun.management.jmxremote.authenticate=false
rem set JMXOPTIONS=%JMXOPTIONS%
-Dcom.sun.management.jmxremote.ssl=false
rem set JMXOPTIONS=%JMXOPTIONS%
-Dcom.sun.management.jmxremote.password.file=
"%WMSCONFIG_HOME%/conf/jmxremote.password"
rem set JMXOPTIONS=%JMXOPTIONS% -Dcom.sun.management.jmxremote.access.file=
"%WMSCONFIG_HOME%/conf/jmxremote.access"
rem log interceptor com.wowza.wms.logging.LogNotify
- see Javadocs for ILogNotify
%_EXESERVER% "%_EXECJAVA%" %JAVA_OPTS% %JMXOPTIONS%
-Dcom.wowza.wms.AppHome="%WMSAPP_HOME%"
-Dcom.wowza.wms.ConfigURL="%WMSCONFIG_URL%"
-Dcom.wowza.wms.ConfigHome="%WMSCONFIG_HOME%"
-cp %CLASSPATH% com.wowza.wms.bootstrap.Bootstrap start
:end
From a first look it seems that adding a start
command to the line where the server is started might help, i.e.:
start "" %_EXESERVER% "%_EXECJAVA%" %JAVA_OPTS% %JMXOPTIONS%
-Dcom.wowza.wms.AppHome="%WMSAPP_HOME%"
-Dcom.wowza.wms.ConfigURL="%WMSCONFIG_URL%"
-Dcom.wowza.wms.ConfigHome="%WMSCONFIG_HOME%"
-cp %CLASSPATH% com.wowza.wms.bootstrap.Bootstrap start
精彩评论