cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r376290 - /cocoon/branches/BRANCH_2_1_X/cocoon.bat
Date Thu, 09 Feb 2006 13:38:37 GMT
Author: jbq
Date: Thu Feb  9 05:38:36 2006
New Revision: 376290

URL: http://svn.apache.org/viewcvs?rev=376290&view=rev
Log:
Added 'precompile'; Added servlet.jar to cli's classpath

Modified:
    cocoon/branches/BRANCH_2_1_X/cocoon.bat

Modified: cocoon/branches/BRANCH_2_1_X/cocoon.bat
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/cocoon.bat?rev=376290&r1=376289&r2=376290&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/cocoon.bat (original)
+++ cocoon/branches/BRANCH_2_1_X/cocoon.bat Thu Feb  9 05:38:36 2006
@@ -105,6 +105,7 @@
 
 if ""%1"" == """" goto doServlet
 if ""%1"" == ""cli"" goto doCli
+if ""%1"" == ""precompile"" goto doPrecompile
 if ""%1"" == ""servlet"" goto doServlet
 if ""%1"" == ""servlet-admin"" goto doAdmin
 if ""%1"" == ""servlet-debug"" goto doDebug
@@ -114,6 +115,7 @@
 echo Usage: cocoon (action)
 echo actions:
 echo   cli             Run Cocoon from command line
+echo   precompile      Crawl your webapp to compile all XSP files (requires the xsp block)
 echo   servlet         Run Cocoon in a servlet container (default)
 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 on remote JVM debug
@@ -134,7 +136,23 @@
 
 :cliLoopEnd
 
-"%JAVA_HOME%\bin\java.exe" %JAVA_OPTIONS% -classpath "%CP%" -Djava.endorsed.dirs=lib\endorsed
"-Dloader.jar.repositories=%COCOON_LIB%" -Dloader.main.class=org.apache.cocoon.Main Loader
%param%
+"%JAVA_HOME%\bin\java.exe" %JAVA_OPTIONS% -classpath "%CP%" -Djava.endorsed.dirs=lib\endorsed
"-Dloader.jar.repositories=%COCOON_LIB%" -Dloader.class.path=lib\core\servlet_2_2.jar -Dloader.verbose=false
-Dloader.main.class=org.apache.cocoon.Main Loader %param%
+goto end
+
+:: ----- Precompile ------------------------------------------------------------
+
+:doPrecompile
+set param=
+shift
+:PrecompileLoop
+if "%1"=="" goto PrecompileLoopEnd
+if not "%1"=="" set param=%param% %1
+shift
+goto PrecompileLoop
+
+:PrecompileLoopEnd
+
+"%JAVA_HOME%\bin\java.exe" %JAVA_OPTIONS% -classpath "%CP%" -Djava.endorsed.dirs=lib\endorsed
"-Dloader.jar.repositories=%COCOON_LIB%" -Dloader.class.path=lib\core\servlet_2_2.jar -Dloader.verbose=false
-Dloader.main.class=org.apache.cocoon.bean.XSPPrecompileWrapper Loader %param%
 goto end
 
 :: ----- Servlet ---------------------------------------------------------------



Mime
View raw message