Posts

Showing posts from October, 2016

Fixing $env.TOMCAT_HOME directory creation in eclipse

Image
I ran into this issue when I cloned a Git repository, was running the ant build and was trying to deploy the build to Tomcat. And every time I did that I got a status of the WAR file being deployed to ${env.TOMCAT_HOME}/webapps. This created a new directory of the same name in the project....and I could not deploy the project....well because it WAS NOT deployed to Tomcat. ${env.TOMCAT_HOME} was being treated like a 'string' in the ant build...not a variable like it should be. And I had something looking like this. I tried looking into setting environment variables on my machine...tried another round hopelessly with root privileges ......to no avail. To make my temper worse I had done this once before successfully on a friend's computer....had very smartly bookmarked the blogpost that mentioned how to do it and now....that entire blog had been removed. On a Friday evening after a full day's work...yeah...right.....i know! Only when I was going to give u