Advertisement
Guest User

Untitled

a guest
Dec 17th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.45 KB | None | 0 0
  1. REM Ebase Upgrade script based on upgrade instructions from Ebase 4.XX to 5.0.1
  2. REM Created By Segi Hovav 12/15/2015
  3.  
  4. @echo off
  5. SET SOURCEPATH=C:\Users\Segi\Desktop\EbaseXi_5.0.1_20151118_upgrade\Ebase_V501_upgrade\
  6. SET DESTINATIONPATH=c:\ebaseXi5\
  7.  
  8. SET WEBAPP=%DESTINATIONPATH%\UfsServer\tomcat\webapps\ufs
  9.  
  10. ECHO *** Section 1: Starting Ebase Server upgrade ***
  11. ECHO.
  12. ECHO Step 1 Copying InternalWorkspace to %DESTINATIONPATH%
  13. XCOPY /E %SOURCEPATH%\Server\InternalWorkspace %DESTINATIONPATH%
  14.  
  15. ECHO Step 2 Copying the contents of Samples to %DESTINATIONPATH%\UfsServer\samples
  16. XCOPY /E /Y %SOURCEPATH%\Server\samples\*.* %DESTINATIONPATH%\UfsServer\samples
  17.  
  18. ECHO Step 3 Copying index.htm and search.jsp to %WEBAPP%
  19. XCOPY /Y %SOURCEPATH%\Server\web_content\index.jsp %WEBAPP%
  20. XCOPY /Y %SOURCEPATH%\Server\web_content\search.jsp %WEBAPP%
  21.  
  22. ECHO Step 4 Deleting doc directory from %WEBAPP%
  23. IF EXIST %WEBAPP%\doc DEL /S /Q %WEBAPP%\doc
  24.  
  25. ECHO Step 5 Copying doc directory to %WEBAPP%
  26. XCOPY /Y %SOURCEPATH%\Server\web_content\doc %WEBAPP%
  27.  
  28. ECHO Step 6 Copying the ebaseConf directory to %WEBAPP%
  29. XCOPY /Y %SOURCEPATH%\Server\web_content\ebaseConf %WEBAPP%
  30.  
  31. ECHO Step 7 Copying the ebaseInternal directory to %WEBAPP%
  32. XCOPY /Y %SOURCEPATH%\Server\web_content\ebaseInternal %WEBAPP%
  33.  
  34. ECHO Step 8 Deleting getting_started from %WEBAPP%
  35. IF EXIST %WEBAPP%\getting_started DEL /S /Q %WEBAPP%\getting_started
  36.  
  37. ECHO Step 9 Copying the getting_started directory to %WEBAPP%
  38. XCOPY /Y %SOURCEPATH%\Server\web_content\getting_started %WEBAPP%
  39.  
  40. ECHO Step 10 Copying the contents of javascript directory to %WEBAPP%\javascript
  41. XCOPY /E /Y %SOURCEPATH%\Server\web_content\javascript\*.* %WEBAPP%\javascript
  42.  
  43. ECHO Step 11 Copying the contents of samples\logon to %WEBAPP%\samples\logon
  44. XCOPY /E /Y %SOURCEPATH%\Server\web_content\samples\logon %WEBAPP%\samples\logon
  45.  
  46. ECHO Step 12 Copying web.xml to %WEBAPP%\WEB-INF
  47. XCOPY /E /Y %SOURCEPATH%\Server\web_content\WEB-INF\web.xml %WEBAPP%\WEB-INF\web.xml
  48.  
  49. ECHO Step 13 Deleting docidx directory from %WEBAPP%\WEB-INF\docidx
  50. IF EXIST %WEBAPP%\WEB-INF\docidx DEL /S /Q %WEBAPP%\WEB-INF\docidx
  51.  
  52. ECHO Step 14 Copying docidx directory to %WEBAPP%\WEB-INF
  53. XCOPY /E /Y %SOURCEPATH%\Server\web_content\WEB-INF\docidx %WEBAPP%\WEB-INF\
  54.  
  55. ECHO Step 15 Copying ebaseCache.xml to %WEBAPP%\WEB-INF\classes
  56. XCOPY /E /Y %SOURCEPATH%\Server\web_content\WEB-INF\classes\ebaseCache.xml %WEBAPP%\WEB-INF\classes\ebaseCache.xml
  57.  
  58. ECHO Step 16 Please check %WEBAPP%\WEB-INF\lib for obsolete jar files according to Appendix 2 of the upgrade instructions and then press any key twice to continue
  59. pause
  60. pause
  61.  
  62. ECHO Step 16 Copying JAR files to %WEBAPP%\WEB-INF\lib
  63. XCOPY /E /Y %SOURCEPATH%\Server\web_content\WEB-INF\lib\*.* %WEBAPP%\WEB-INF\lib
  64.  
  65. ECHO Step 17 Adding upgrade=true to UFSSetup.properties
  66. ECHO upgrade=true >> %WEBAPP%\WEB-INF\classes\UFSSetup.properties
  67.  
  68. ECHO Step 18 Start the server now to begin the upgrade of the server. After the server has started and you see the message *** UPGRADE TO EBASE VERSION 5.0.0 COMPLETED ***, stop it and press any key to continue
  69. pause
  70.  
  71. ECHO Step 19 Removing upgrade=true from UFSSetup.properties
  72. type %WEBAPP%\WEB-INF\classes\UFSSetup.properties | find /v upgrade=true > %WEBAPP%\WEB-INF\classes\UFSSetup.properties
  73.  
  74. ECHO Step 20 Copying DeploymentMaintenance.eb to SOURCEPATH%\Server\Workspace\ebaseSamples\Scheduled_Tasks
  75. XCOPY /E /Y %SOURCEPATH%\Server\Workspace\ebaseSamples\Scheduled_Tasks\DeploymentMaintenance.eb %DESTINATIONPATH%\Workspace\Shared\Scheduled_Tasks
  76.  
  77. ECHO Step 21 Start the server now
  78.  
  79. ECHO *** Section 2: Starting Ebase Client upgrade ***
  80. ECHO.
  81. ECHO Step 1 Copying derby.properties to %DESTINATIONPATH%\UfsClient
  82. XCOPY /E /Y %SOURCEPATH%\Client\derby.properties %DESTINATIONPATH%\UfsClient
  83.  
  84. ECHO Step 2 Deleting %DESTINATIONPATH%\UfsClient\images
  85. IF EXIST %DESTINATIONPATH%\UfsClient\images DEL /S /Q %DESTINATIONPATH%\UfsClient\images
  86.  
  87. ECHO Step 3 Copying images directory to %DESTINATIONPATH%\UfsClient\images
  88. XCOPY /E /Y %SOURCEPATH%\Client\images %DESTINATIONPATH%\UfsClient\
  89.  
  90. ECHO Step 4 Copying preferences directory to %DESTINATIONPATH%\UfsClient\
  91. XCOPY /E /Y %SOURCEPATH%\Client\preferences %DESTINATIONPATH%\UfsClient\
  92.  
  93. ECHO Step 5 IntegratedServer directory to %DESTINATIONPATH%\UfsClient\
  94. XCOPY /E /Y %SOURCEPATH%\Client\IntegratedServer %DESTINATIONPATH%\UfsClient\
  95.  
  96. ECHO Step 6 Deleting %DESTINATIONPATH%\UfsClient\lib
  97. IF EXIST %DESTINATIONPATH%\UfsClient\lib DEL /S /Q %DESTINATIONPATH%\UfsClient\lib
  98.  
  99. ECHO Step 7 Copying the lib directory to %DESTINATIONPATH%\UfsClient\
  100. XCOPY /E /Y %SOURCEPATH%\Client\lib %DESTINATIONPATH%\UfsClient\
  101.  
  102. ECHO Step 8 Copying installation_preferences.xml to %DESTINATIONPATH%\UfsClient\preferences
  103. XCOPY /E /Y %SOURCEPATH%\UFSServer\preferences/installation_preferences.xml %DESTINATIONPATH%\UfsClient\preferences
  104.  
  105. ECHO Step 9 Copying systemTexts directory, userFunctions.xml and log4j.properties to %DESTINATIONPATH%\UfsClient\preferences
  106. XCOPY /E /Y %SOURCEPATH%\Client\properties\systemTexts %DESTINATIONPATH%\UfsClient\preferences
  107. XCOPY /E /Y %SOURCEPATH%\Client\properties\userFunctions.xml %DESTINATIONPATH%\UfsClient\preferences
  108. XCOPY /E /Y %SOURCEPATH%\Client\properties\log4j.properties %DESTINATIONPATH%\UfsClient\preferences
  109.  
  110. ECHO Step 10 Start the designer and accept the default for the workspace location. Wait for the Updating Data Dictionary.. message on the status bar at the bottom of the designer to disappear; this make take some minutes for a large workspace.
  111. pause
  112.  
  113. ECHO Step 11 Then select File > Preferences from the menu, select the Test Server tab, select the Use External Server radio button and change the three properties under this option to match your server. These are supplied with default values of Host name: localhost, Port: 3030, Web application name: ebasetest. These should be changed to match your server system, typically Host name: localhost, Port: 3030, Web application name: ufs. Then click OK.
  114.  
  115. ECHO *** Section 3: Updating FPL definitions ***
  116. ECHO.
  117. ECHO Step 1 Copying Fpl.jj to %DESTINATIONPATH%\LanguageBuilder\Fpl
  118. XCOPY /E /Y %SOURCEPATH%\LanguageBuilder\Fpl\FPL.jj %DESTINATIONPATH%\LanguageBuilder\Fpl
  119.  
  120. ECHO Step 2 Copying LanguageBuilder\*.* to %DESTINATIONPATH%\LanguageBuilder\
  121. XCOPY /Y %SOURCEPATH%\LanguageBuilder\*.* %DESTINATIONPATH%\LanguageBuilder\
  122.  
  123. ECHO Step 3 Deleting ecj-3.3.jar from %DESTINATIONPATH%\LanguageBuilder\
  124. IF EXIST %DESTINATIONPATH%\LanguageBuilder\ecj-3.3.jar DEL %DESTINATIONPATH%\LanguageBuilder\ecj-3.3.jar
  125.  
  126. ECHO *** Section 4: Upgrading the Ebase dating FPL definitions ***
  127. ECHO.
  128. ECHO Step 1 Copying databaseSchemas to %DESTINATIONPATH%\UfsServer
  129. XCOPY /E /Y %SOURCEPATH%\databaseSchemas %DESTINATIONPATH%\UfsServer
  130.  
  131. ECHO *** Section 5: Upgrading the external Ebase programs ***
  132. ECHO.
  133. ECHO Step 1 Copying ebaseTrigger.jar to %DESTINATIONPATH%\External\EbaseTrigger\lib
  134. XCOPY /E /Y %SOURCEPATH%\External\EbaseTrigger\lib\ebaseTrigger.jar %DESTINATIONPATH%\External\EbaseTrigger\lib
  135.  
  136. ECHO Step 2 Copying processBatchFiles.jar %DESTINATIONPATH%\External\processXML\lib
  137. XCOPY /E /Y %SOURCEPATH%\External\processXML\lib\processBatchFiles.jar %DESTINATIONPATH%\External\processXML\lib
  138.  
  139. ECHO *** Section 6: Upgrading Workflow Administrator ***
  140. ECHO.
  141. ECHO If you have modified the WORKFLOW_ADMINISTRATOR, please read Appendix 5 of the upgrade instructions
  142. ECHO.
  143. ECHO If not, follow these steps:
  144. echo In the designer, right click on the SAMPLES project in the tree panel on the left-hand side and select Import > Ebase Archive
  145. echo Click Browse.. then navigate to the WorkflowAdmin folder at the root of the upgrade package, select file workFlowAdministratorChanges.zip, click Open, then click Next
  146. echo Click Automatically overwrite existing entities checkbox then click Import
  147.  
  148. ECHO *** Section 7: Test the installation by running the Server Administration Application ***
  149. ECHO.
  150. ECHO From the designer, check that the Manage Server icon (in the top right-hand corner) is green, indicating that the server is running OK. Click on this icon
  151. ECHO and select Start Server Admin App to launch the application in a browser. You should be able to sign on to the application using the ebaseuser user. If this
  152. ECHO doesn’t work, then new users can be added by editing file <webapp>/ebaseConf/sysAdmin.properties on the server (any designer userids from V4 can be added).
  153. ECHO Once the application is started, click some of the options within the application to test that the system is working correctly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement