You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ro...@apache.org on 2004/05/27 00:37:40 UTC

cvs commit: cocoon-lenya lenya.bat

roku        2004/05/26 15:37:40

  Modified:    .        lenya.bat
  Log:
  Added unpacking of WAR file if needed (on first start up of lenya).
  See #29026.
  
  Revision  Changes    Path
  1.5       +15 -2     cocoon-lenya/lenya.bat
  
  Index: lenya.bat
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/lenya.bat,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- lenya.bat	26 Mar 2004 18:47:04 -0000	1.4
  +++ lenya.bat	26 May 2004 22:37:40 -0000	1.5
  @@ -81,8 +81,21 @@
   
   set CP=%LENYA_HOME%\tools\loader
   
  -:: ----- Check action ----------------------------------------------------------
  +:: ----- Unpack WAR file if needed --------------------------------------------------
  +
  +if exist build\lenya\webapp goto action
  +
  +echo        ###############################################
  +echo        #   First start of Lenya. Unpacking now...    #
  +echo        ###############################################
   
  +mkdir build\lenya\webapp
  +cd build\lenya\webapp
  +"%JAVA_HOME%\bin\jar.exe" -xf ..\..\..\lenya.war
  +cd ..\..\..
  +
  +:: ----- Check action ----------------------------------------------------------
  +:action
   if ""%1"" == ""cli"" goto doCli
   if ""%1"" == ""servlet"" goto doServlet
   if ""%1"" == ""servlet-admin"" goto doAdmin
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org