Last active
February 15, 2016 18:12
-
-
Save timlevett/6922b4578047319b9076 to your computer and use it in GitHub Desktop.
Deploy a portlet to your local machine
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
#!/bin/bash | |
PROJECTS_HOME=$1 | |
export UPHOME=$PROJECTS_HOME/uPortal/ | |
echo Uportal home set to : $UPHOME | |
function upDeployPortlet() | |
{ | |
pushd $UPHOME | |
ant deployPortletApp -DportletApp="$@" | |
popd | |
} | |
function upRebuildPortlet() | |
{ | |
pushd $PROJECTS_HOME/${1}/ | |
mvn clean | |
mvn package > /tmp/${1}.build.log | |
WAR=`cat /tmp/${1}.build.log | grep .war | grep $1 | grep target | cut -d" " -f4` | |
echo "Deploying war $WAR" | |
upDeployPortlet $WAR | |
popd | |
echo "Deployed war $WAR" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment