Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 22412 invoked by uid 500); 23 Feb 2003 15:15:30 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 22401 invoked by uid 500); 23 Feb 2003 15:15:29 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Received: (qmail 22397 invoked from network); 23 Feb 2003 15:15:29 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 23 Feb 2003 15:15:29 -0000 Received: (qmail 10857 invoked by uid 1010); 23 Feb 2003 15:15:29 -0000 Date: 23 Feb 2003 15:15:29 -0000 Message-ID: <20030223151529.10856.qmail@icarus.apache.org> From: stefano@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2 cocoon.bat X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N stefano 2003/02/23 07:15:29 Added: . cocoon.bat Log: the new cocoon launch system that uses Forehead as a bootstrapping tool (unix version coming up next) Revision Changes Path 1.1 xml-cocoon2/cocoon.bat Index: cocoon.bat =================================================================== @echo off :: ----------------------------------------------------------------------------- :: Cocoon Win32 Shell Script :: :: $Id: cocoon.bat,v 1.1 2003/02/23 15:15:29 stefano Exp $ :: ----------------------------------------------------------------------------- :: ----- Verify and Set Required Environment Variables ------------------------- if not "%JAVA_HOME%" == "" goto gotJavaHome echo You must set JAVA_HOME to point at your Java Development Kit installation goto cleanup :gotJavaHome :: ----- Set Up The Classpath -------------------------------------------------- set CP=.\tools\lib\forehead-1.0-beta-4.jar :: ----- Check System Properties ----------------------------------------------- set EXEC=start "Cocoon" /D. /MAX if not "%JETTY_PORT%" == "" goto gotPort set JETTY_PORT=8888 :gotPort if not "%JETTY_ADMIN_PORT%" == "" goto gotPort set JETTY_ADMIN_PORT=8889 :gotPort if not "%JETTY_WEBAPP%" == "" goto gotWebapp set JETTY_WEBAPP=build/webapp :gotWebapp if not "%JAVA_DEBUG_PORT%" == "" goto gotWebapp set JAVA_DEBUG_PORT=8000 :gotWebapp :: ----- Check action ---------------------------------------------------------- if ""%1"" == ""cli"" goto doCli if ""%1"" == ""servlet"" goto doServlet 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 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 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 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 :: ----- End ----------------------------------------------- :end set CP=