stefano 2003/02/23 08:39:46
Modified: . cocoon.bat Log: added a new action to turn on/off jetty web administration and disabled CLI that doesn't work yet Revision Changes Path 1.2 +14 -5 xml-cocoon2/cocoon.bat Index: cocoon.bat =================================================================== RCS file: /home/cvs/xml-cocoon2/cocoon.bat,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- cocoon.bat 23 Feb 2003 15:15:29 -0000 1.1 +++ cocoon.bat 23 Feb 2003 16:39:46 -0000 1.2 @@ -40,33 +40,42 @@ if ""%1"" == ""cli"" goto doCli if ""%1"" == ""servlet"" goto doServlet +if ""%1"" == ""servlet-admin"" goto doServletAdmin if ""%1"" == ""servlet-debug"" goto doDebug echo Usage: cocoon (action) echo actions: echo cli Run Cocoon from command line echo servlet Run Cocoon in a servlet container -echo servlet-debug Run Cocoon in a servlet container and turn debug on +echo servlet-admin Run Cocoon in a servlet container and turn container web administration on +echo servlet-debug Run Cocoon in a servlet container and turn remote debug on goto end :: ----- Cli ------------------------------------------------------------------- :doCli -%JAVA_HOME%\bin\java.exe -classpath %CP% -Djava.endorsed.dirs=lib\endorsed -Dforehead.conf.file=cocoon.env com.werken.forehead.Forehead %2 %3 %4 %5 %6 %7 %8 %9 +echo WARNING! DOESN'T WORK YET! +::%JAVA_HOME%\bin\java.exe -classpath %CP% -Djava.endorsed.dirs=lib\endorsed -Dforehead.conf.file=cocoon.env com.werken.forehead.Forehead %2 %3 %4 %5 %6 %7 %8 %9 goto end :: ----- Servlet --------------------------------------------------------------- :doServlet +%EXEC% %JAVA_HOME%\bin\java.exe %JAVA_OPT% -classpath %CP% -Djava.endorsed.dirs=lib\endorsed -Dwebapp=%JETTY_WEBAPP% -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -Djetty.port=%JETTY_PORT% -Djetty.admin.port=%JETTY_ADMIN_PORT% -Dforehead.conf.file=tools\jetty\conf\jetty.env com.werken.forehead.Forehead tools\jetty\conf\main.xml +goto end + +:: ----- Servlet with Admin ---------------------------------------------------- + +:doServletAdmin %EXEC% %JAVA_HOME%\bin\java.exe %JAVA_OPT% -classpath %CP% -Djava.endorsed.dirs=lib\endorsed -Dwebapp=%JETTY_WEBAPP% -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -Djetty.port=%JETTY_PORT% -Djetty.admin.port=%JETTY_ADMIN_PORT% -Dforehead.conf.file=tools\jetty\conf\jetty.env com.werken.forehead.Forehead tools\jetty\conf\main.xml tools\jetty\conf\admin.xml goto end :: ----- Servlet Debug --------------------------------------------------------- :doDebug -%EXEC% %JAVA_HOME%\bin\java.exe %JAVA_OPT% -Xdebug -Xrunjdwp:transport=dt_socket,address=%JAVA_DEBUG_PORT%,server=y,suspend=n -classpath %CP% -Djava.endorsed.dirs=lib\endorsed -Dwebapp=%JETTY_WEBAPP% -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -Djetty.port=%JETTY_PORT% -Djetty.admin.port=%JETTY_ADMIN_PORT% -Dforehead.conf.file=tools\jetty\conf\jetty.env com.werken.forehead.Forehead tools\jetty\conf\main.xml tools\jetty\conf\admin.xml +%EXEC% %JAVA_HOME%\bin\java.exe %JAVA_OPT% -Xdebug -Xrunjdwp:transport=dt_socket,address=%JAVA_DEBUG_PORT%,server=y,suspend=n -classpath %CP% -Djava.endorsed.dirs=lib\endorsed -Dwebapp=%JETTY_WEBAPP% -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -Djetty.port=%JETTY_PORT% -Djetty.admin.port=%JETTY_ADMIN_PORT% -Dforehead.conf.file=tools\jetty\conf\jetty.env com.werken.forehead.Forehead tools\jetty\conf\main.xml -:: ----- End ----------------------------------------------- +:: ----- End ------------------------------------------------------------------- :end set CP=