anchor.diff:  if exist "%PR_JVM%" goto foundJvm
   set PR_JVM=auto
   :foundJvm
  -echo Using JVM:              %PR_JVM%
  +echo Using JVM          : %PR_JVM%
  +echo Using JVM_PLATFORM : %JVM_PLATFORM%
   "%EXECUTABLE%" //IS//%SERVICE_NAME% --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop
   if not errorlevel 1 goto installed
   echo Failed installing '%SERVICE_NAME%' service
  
positive.code: rem ---------------------------------------------------------------------------
  
  rem Guess CATALINA_HOME if not defined
  set CURRENT_DIR=%cd%
  if not "%CATALINA_HOME%" == "" goto gotHome
  set CATALINA_HOME=%cd%
  if exist "%CATALINA_HOME%\bin\tomcat6.exe" goto okHome
  rem CD to the upper dir
  cd ..
  set CATALINA_HOME=%cd%
  :gotHome
  if exist "%CATALINA_HOME%\bin\tomcat6.exe" goto okHome
  echo The tomcat.exe was not found...
  echo The CATALINA_HOME environment variable is not defined correctly.
  echo This environment variable is needed to run this program
  goto end
  rem Make sure prerequisite environment variables are set
  if not "%JAVA_HOME%" == "" goto okHome
  echo The JAVA_HOME environment variable is not defined
  echo This environment variable is needed to run this program
  goto end 
  :okHome
  if not "%CATALINA_BASE%" == "" goto gotBase
  set CATALINA_BASE=%CATALINA_HOME%
  :gotBase
   
  set EXECUTABLE=%CATALINA_HOME%\bin\tomcat6.exe
  
  rem Set default Service name
  set SERVICE_NAME=Tomcat6
  
negative.code: set PR_STDOUTPUT=auto
  set PR_STDERROR=auto
  "%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp" --JvmMs 128 --JvmMx 256
  echo Service '%SERVICE_NAME%' has been installed.
  
  :end
  cd %CURRENT_DIR%
  