As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
#!/bin/sh # ——- # Script for apply AMPs to installed WAR # ——- export CATALINA_HOME=tomcat echo "This script will apply the alfresco-dod5015-unsupported.amp AMP in ./amps to the alfresco.war file in $CATALINA_HOME\webapps" echo "Press control-c to stop this script . . ." echo "Press any other key to continue . . ." read RESP java -jar bin/alfresco-mmt.jar install ./amps/alfresco-dod5015-unsupported.amp $CATALINA_HOME/webapps/alfresco.war java -jar bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/alfresco.war echo "About to clean out tomcat/webapps/alfresco directory and temporary files…" echo "Press control-c to stop this script . . ." echo "Press any other key to continue . . ." read DUMMY rm -rf $CATALINA_HOME/webapps/alfresco echo "This script will apply the alfresco-dod5015-share-unsupported.amp AMP in ./amps to the share.war file in $CATALINA_HOME\webapps" echo "Press control-c to stop this script . . ." echo "Press any other key to continue . . ." read RESP java -jar bin/alfresco-mmt.jar install ./amps/alfresco-dod5015-share-unsupported.amp $CATALINA_HOME/webapps/share.war -force -verbose java -jar bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/share.war echo "About to clean out tomcat/webapps/share directory and temporary files…" echo "Press control-c to stop this script . . ." echo "Press any other key to continue . . ." read DUMMY rm -rf $CATALINA_HOME/webapps/share sh ./bin/clean_tomcat.sh
@echo off rem ——- rem Script for apply AMPs to installed WAR rem ——- set ALF_HOME=%~dp0 set CATALINA_HOME=%ALF_HOME%tomcat if not exist "%ALF_HOME%SetPaths.bat" goto getpaths call "%ALF_HOME%SetPaths.bat" goto start :getpaths call "%ALF_HOME%bin\RegPaths.exe" call "%ALF_HOME%SetPaths.bat" del "%ALF_HOME%SetPaths.bat" :start echo This script will apply all the AMPs in %ALF_HOME%amps to the alfresco.war file in %CATALINA_HOME%\webapps if ""%1"" == ""nowait"" goto nowait1 echo Press control-c to stop this script . . . pause :nowait1 "%JAVA_HOME%\bin\java" -jar "%ALF_HOME%bin\alfresco-mmt.jar" install "%ALF_HOME%amps\alfresco-dod5015-unsupported.amp" "%CATALINA_HOME%\webapps\alfresco.war" "%JAVA_HOME%\bin\java" -jar "%ALF_HOME%bin\alfresco-mmt.jar" list "%CATALINA_HOME%\webapps\alfresco.war" "%JAVA_HOME%\bin\java" -jar "%ALF_HOME%bin\alfresco-mmt.jar" install "%ALF_HOME%amps\alfresco-dod5015-share-unsupported.amp" "%CATALINA_HOME%\webapps\share.war" -force -verbose "%JAVA_HOME%\bin\java" -jar "%ALF_HOME%bin\alfresco-mmt.jar" list "%CATALINA_HOME%\webapps\share.war" echo . echo About to clean out tomcat/webapps/alfresco directory and temporary files… if ""%1"" == ""nowait"" goto nowait2 pause :nowait2 rmdir /S /Q "%CATALINA_HOME%\webapps\alfresco" call "%ALF_HOME%bin\clean_tomcat.bat"