I am using Eclipse for Java web development. I have WTP and Tomcat installed. I run Tomcat via Eclipse (which is a pretty standard configuration).
What I want to understand is that:
When you right click on a server in the Servers tab, it gives you two options:
Not much information could be found on Google. People are blindly choosing "Clean". Could someone please explain the difference between the two options?
Thank you in advance.
Clean: Purges all webapps and redeploys them (don't do this while the Tomcat instance is running) Clean working dir: Cleans out Tomcat's work dir, e.g., where compiled JSPs go.
If you're using the Tomcat Maven Plugin in Eclipse, then your Tomcat related files would be in <project folder>/target/tomcat instead, including the tomcat work folder at <project folder>/target/tomcat/work , and you can descend from there to find your jsp . java files, etc.
The Publish option in the server tab will deploy the application to your Tomcat instance by copying the project resources such as xml configuration files , web resource (html ,css, js etc) , and the compiled . class files you get from the "project > Build" to the correct location of the Tomcat instance .
Clean: Purges all webapps and redeploys them (don't do this while the Tomcat instance is running)
Clean working dir: Cleans out Tomcat's work dir, e.g., where compiled JSPs go. See here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With