echo "export PATH=\$JAVA_HOME/bin:\$PATH" >> /etc/profile.d/java.sh
source /etc/profile.d/java.sh
cd /var/hda/web-apps/aditomyadito/htmlserver
ant install
ant install-service
ant start
service adito stop
sed -i 's/wrapper.working.dir=./wrapper.working.dir=\/var\/hda\/web-apps\/aditomyadito\/htmlserver/' /var/hda/web-apps/aditomyadito/htmlserver/conf/wrapper.conf sed -i 's/#wrapper.java.additional.2=-Dfile.encoding=UTF-8/wrapper.java.additional.2=-Dfile.encoding=UTF-8/' /var/hda/web-apps/aditomyadito/htmlserver/conf/wrapper.conf
service adito start