Skip to content

Commit

Permalink
Bash script to build the metviewer war file, copy it to the tomcat we…
Browse files Browse the repository at this point in the history
…bapps directory and restart tomcat
  • Loading branch information
bikegeek committed Dec 24, 2024
1 parent d1f35dd commit b02f3c9
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions internal/scripts/util/mv_build_update_dakota.bash
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

0 comments on commit b02f3c9

Please sign in to comment.