Skip to content

Instantly share code, notes, and snippets.

@jyukutyo
Forked from yusuke/launch_war.sh
Created August 26, 2012 03:24
Show Gist options
  • Save jyukutyo/3473558 to your computer and use it in GitHub Desktop.
Save jyukutyo/3473558 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ ! -f /tmp/quickwar.xml ]
then
wget --no-check-certificate -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