Skip to content

Commit

Permalink
Added support for building and updating METviewer on mohawk
Browse files Browse the repository at this point in the history
  • Loading branch information
bikegeek committed Dec 25, 2024
1 parent 95829c9 commit 7f9f831
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions internal/scripts/util/mv_build_update_mohawk.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 ""
/d2/personal/mwin/apache-ant-1.10.14/bin/ant \
-Dbuild.properties.file=/d2/projects/METViewer/src/build.properties \
-Ddb.management.system=mariadb \
-Dmetcalcpy.path=/d2/projects/METViewer/METcalcpy/ \
-Dmetplotpy.path=/d2/projects/METViewer/METplotpy/ \
-Dmetdataio.path=/d2/projects/METViewer/METdataio/ \
-Dpython.env.path=/d2/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 /d2/projects/METViewer/src/apps/METviewer/dist/metviewer.war /opt/vxwww/tomcat/webapps/metviewer.war

echo "======================================================================="
echo "Now restarting catalina... !!!YOU NEED TO PROVIDE THE PASSWORD!!!"
echo "======================================================================="
echo ""

0 comments on commit 7f9f831

Please sign in to comment.