Executing bat file and returning the prompt

Posted by Lieven Cardoen on Stack Overflow See other posts from Stack Overflow or by Lieven Cardoen
Published on 2010-05-18T08:34:22Z Indexed on 2010/05/18 8:40 UTC
Read the original article Hit count: 388

Filed under:
|
|
|
|

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.management.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

© Stack Overflow or respective owner

Related posts about cruisecontrol

Related posts about ant