Skip to content

Instantly share code, notes, and snippets.

@yusuke
Created August 20, 2012 06:44
Show Gist options
  • Save yusuke/3401651 to your computer and use it in GitHub Desktop.
Save yusuke/3401651 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ ! -f /tmp/quickwar.xml ]
then
wget -O /tmp/quickwar.xml https://raw.github.com/gist/3401499/aea7940a07739ff297deeeccf7385d6d2a2f29c3/pom.xml
fi
sed -E "s?<webAppSourceDirectory>.*</webAppSourceDirectory>?<webAppSourceDirectory>`pwd`</webAppSourceDirectory>?g" /tmp/quickwar.xml >/tmp/quickwar_replaced.xml
mvn -f /tmp/quickwar_replaced.xml jetty:run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment