#!/bin/bash

fw_depends java resin maven

sed -i 's|127.0.0.1|'${DBHOST}'|g' src/main/webapp/WEB-INF/resin-web.xml
sed -i 's|localhost|'${DBHOST}'|g' src/main/java/hellowicket/WicketApplication.java

mvn clean compile war:war
rm -rf $RESIN_HOME/webapps/*
cp target/hellowicket-*.war $RESIN_HOME/webapps/wicket.war
resinctl start

#!/bin/bash

fw_depends java resin maven

sed -i 's|localhost|'${DBHOST}'|g' src/main/java/hellowicket/WicketApplication.java

mvn clean compile war:war
rm -rf $RESIN_HOME/webapps/*
cp target/hellowicket-*.war $RESIN_HOME/webapps/wicket.war
resinctl start

Remove sed rule that modifies the content of resin-web.xml. resin-web.xml has been removed.
Remove sed rule that modifies the content of resin-web.xml. resin-web.xml has been removed.
