Ignore:
Timestamp:
Jan 18, 2010, 5:11:30 PM (14 years ago)
Author:
Fredrik Levander
Message:

Fixes #644. Updated scripts to copy files into tomcat installation and overwrite existing installation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/misc/install/update_proteios-win.bat

    r3096 r3546  
    274274call inp2var.bat here prompt.txt no_input
    275275echo Deploying %app_name% into %catalina_home%
    276 rem
    277 rem Due to problems creating a *.lnk shortcut in a batch file,
    278 rem this part is replaced by instructions on how to copy
    279 rem the www directory to CATALINA_HOME\webapps\, and then
    280 rem renaming the directory to APP_NAME
    281 rem
    282276echo ________________________________________________________________________
    283 echo Instructions for employing %app_name% into Tomcat:
    284 echo.
    285 echo 1. Remove any existing directory %catalina_home%\webapps\%app_name% and all its contents
    286 echo 2. Copy directory %here%\www and all its contents to %catalina_home%\webapps\
    287 echo 3. Rename directory %catalina_home%\webapps\www to %catalina_home%\webapps\%app_name%
    288 echo ________________________________________________________________________
    289 echo.
     277echo.
     278echo Copying new installation from %here%\www to %catalina_home%\webapps\www.
     279xcopy "%here%"\www "%catalina_home%"\webapps\www /E /I /V /Q
     280if ERRORLEVEL 1 goto failure
     281echo Removing old installation.
     282rmdir "%catalina_home%"\webapps\%app_name% /S /Q
     283if ERRORLEVEL 1 goto failure
     284echo Activating new installation in %catalina_home%\webapps\%app_name%.
     285move "%catalina_home%"\webapps\www "%catalina_home%"\webapps\%app_name%
     286if ERRORLEVEL 1 goto failure
    290287
    291288rem
     
    293290rem
    294291:step_5a
    295 set body_text=%app_name% is now updated. Start tomcat before use.
     292set body_text=%app_name% is now updated. Restart tomcat before use.
    296293set next_step=step_5b
    297294goto print
     
    377374goto %next_step%
    378375
     376:failure
     377echo Installation failed
     378goto finish
     379
    379380
    380381:finish
     
    393394  set next_step=
    394395  set here=
     396 
     397echo    Press Enter to finish: > prompt.txt
     398call inp2var.bat dummy_var prompt.txt
    395399:end
Note: See TracChangeset for help on using the changeset viewer.