Skip to content

Commit

Permalink
Merge branch 'TomcatBat' into 'master'
Browse files Browse the repository at this point in the history
project tomcat.bat added

See merge request exedio/copeconsole!122
  • Loading branch information
rw7 committed Jan 13, 2025
2 parents 3a99e35 + 321f498 commit c1b0bcb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tomcat.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@echo off
rem Guess CATALINA_HOME if not defined

set "CURRENT_DIR=%cd%"
if not "%CATALINA_HOME%" == "" goto CHECK_TOMCAT
set "CATALINA_HOME=%CURRENT_DIR%\tomcat"

:CHECK_TOMCAT
echo CATALINA_HOME set to "%CATALINA_HOME%"
if exist "%CATALINA_HOME%\bin\catalina.bat" goto RUN
echo Tomcat not built correctly! Run 'ant clean tomcat' first.
goto END

:RUN
rem Run catalina with different params e.g. jpda run
echo Tomcat is in "%CATALINA_HOME%"

if not "%1" == "" goto DO_RUN

echo Usage: tomcat ( commands ... )
echo commands:
echo jpda Start Catalina under JPDA debugger
echo run Start Catalina in the current window
echo jpda run Start Catalina under JPDA debugger in the current window
echo configtest Run a basic syntax check on server.xml
echo version What version of tomcat are you running?
goto END

:DO_RUN
call "%CATALINA_HOME%\bin\catalina.bat" %1 %2
if errorlevel 1 goto END

:END

0 comments on commit c1b0bcb

Please sign in to comment.