Modified script a bit
Used java 7 and deleted war cache dir