Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between clean and clean working directory in Eclipse WTP with Tomcat

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:

  1. Clean
  2. Clean Working Directory

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.

like image 775
user590849 Avatar asked Jun 09 '13 04:06

user590849


People also ask

What is clean Tomcat work directory?

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.

Where is Tomcat work directory eclipse?

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.

What is publish in Tomcat eclipse?

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 .


1 Answers

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.

like image 140
Michael-O Avatar answered Sep 29 '22 03:09

Michael-O