-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bash script to build the metviewer war file, copy it to the tomcat we…
…bapps directory and restart tomcat
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/sh | ||
|
||
|
||
# This script builds the METviewer war file, then copies it to the tomcat directory | ||
# This script is set up for dakota | ||
echo "===================================================================================================" | ||
echo " This script builds the METviewer war file, copies it to the tomcat directory as metviewer_dev.war" | ||
echo " As a last step, the tomcat server is restarted, but the user must supply a password when prompted." | ||
echo "===================================================================================================" | ||
echo "" | ||
echo "" | ||
echo "" | ||
|
||
|
||
|
||
echo "=======================================================================================" | ||
|
||
echo "!!!PRE-CONDITIONS!!!:" | ||
|
||
echo " su as the appropriate user, vxww' | ||
echo " The appropriate versions of METdataio, METcalcpy, METplotpy, and METviewer are being used" | ||
echo" appropriate changes made to the metviewer1.jsp file with updated version number" | ||
echo "=======================================================================================" | ||
# Build the war file using the ant on /d1/mwin/apache-ant-1.10.14/bin/ant | ||
echo "=======================================================================" | ||
echo "Building the war file..." | ||
echo "=======================================================================" | ||
echo "" | ||
/d1/mwin/apache-ant-1.10.14/bin/ant \ | ||
-Dbuild.properties.file=/d3/projects/METViewer/src/build.properties \ | ||
-Ddb.management.system=mariadb \ | ||
-Dmetcalcpy.path=/d3/projects/METViewer/METcalcpy/ \ | ||
-Dmetplotpy.path=/d3/projects/METViewer/METplotpy/ \ | ||
-Dmetdataio.path=/d3/projects/METViewer/METdataio/ \ | ||
-Dpython.env.path=/d3/projects/METViewer/METviewer_py3.10.4/ clean all | ||
# copy the war file as metviewer_dev.war to the tomcat directory | ||
echo "=================================================================================" | ||
echo "Copying the war file to /opt/tomcat/vxwww/webapps/metviewer_dev as metviewer_dev.war" | ||
echo "=================================================================================" | ||
echo "" | ||
cp /d3/projects/METViewer/src/apps/METviewer/dist/metviewer.war /opt/tomcat/vxwww/webapps/metviewer_dev.war | ||
echo "=======================================================================" | ||
echo "Now restarting catalina... !!!YOU NEED TO PROVIDE THE PASSWORD!!! | ||
echo "=======================================================================" | ||
echo "" | ||
/opt/tomcat/vxwww/bin/startup.sh |