Republish required when Eclipse starts [message #208211] |
Wed, 06 February 2008 11:59  |
Eclipse User |
|
|
|
I am using Eclipse 3.3.1.1 and WTP 2.0.1. I have a large web app
configured with Tomcat 5.5.17. Every time that I start Eclipse I have to
republish this web application, even if nothing has changed since I last
left Eclipse. Does anyone else have this problem? I just wanted to ask
before I filed a bug.
Steps to reproduce:
1. Configure a web application with Tomcat (I used 5.5.17 and 6.0.13).
2. Publish application, note Status is Synchronized.
3. Exit Eclipse.
4. Start Eclipse.
5. Note that you have to republish the web application.
Republishing a web app can take several minutes. I did not have to
republish in previous versions of Eclipse and WTP.
|
|
|
Re: Republish required when Eclipse starts [message #208225 is a reply to message #208211] |
Wed, 06 February 2008 13:42   |
Eclipse User |
|
|
|
David Matheson wrote:
> I am using Eclipse 3.3.1.1 and WTP 2.0.1. I have a large web app
> configured with Tomcat 5.5.17. Every time that I start Eclipse I have
> to republish this web application, even if nothing has changed since I
> last left Eclipse. Does anyone else have this problem? I just wanted
> to ask before I filed a bug.
>
> Steps to reproduce:
> 1. Configure a web application with Tomcat (I used 5.5.17 and 6.0.13).
> 2. Publish application, note Status is Synchronized.
> 3. Exit Eclipse.
> 4. Start Eclipse.
> 5. Note that you have to republish the web application.
>
> Republishing a web app can take several minutes. I did not have to
> republish in previous versions of Eclipse and WTP.
>
This isn't a bug based just on the info provided. Eclipse can't assume
something didn't change in the web application outside of Eclipse while
Eclipse was stopped. Thus, some check would be needed to determine if
web application had changed. Rather that perform this check at startup,
it is incorporated into the publish. If the web application was
previously synchronized, then that publish shouldn't actually copy any
files and complete quickly.
Unfortunately due to Bug 206087[1], WTP 2.0.x may do a full publish by
mistake for the first publish after starting Eclipse. A fix is coming
in WTP 2.0.2. At startup, the web application will still say Republish,
but it should be a fairly fast publish that simply figures out you are
already synchronized.
Cheers,
Larry
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=206087
|
|
|
|
Powered by
FUDForum. Page generated in 0.03500 seconds