@ echo off
rem This file can be used to start the apache webserver

cd ..

call .\setEnv.bat

if not check==%1check set WEBSERVER_HOME=%1

copy %WEBSERVER_HOME%\conf\backup\httpd.conf %WEBSERVER_HOME%\conf
copy %TOMCAT_HOME%\conf\backup\server.xml %TOMCAT_HOME%\conf
copy %TOMCAT_HOME%\conf\backup\mod_jk.conf-auto %TOMCAT_HOME%\conf\mod_jk.conf-nms
copy %TOMCAT_HOME%\conf\backup\workers.properties %TOMCAT_HOME%\conf\workers.properties

set CLASSPATH=%NMS_CLASSES%

%JAVA_HOME%\bin\java -Dwebserver.rootdir=%WEBSERVER_HOME% -Dwebnms.rootdir=%NMS_HOME% -Dwebcontainer.home=%TOMCAT_HOME% com.adventnet.nms.util.InitWebSvr %WEBSERVER_HOME%\conf\httpd.conf %TOMCAT_HOME%\conf\server.xml %TOMCAT_HOME%\conf\mod_jk.conf-nms %TOMCAT_HOME%\conf\workers.properties

cd %WEBSERVER_HOME%
bin\apache -d . -f conf\httpd.conf

