Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Republish required when Eclipse starts
Republish required when Eclipse starts [message #208211] Wed, 06 February 2008 16:59 Go to next message
David Matheson is currently offline David Matheson
Messages: 3
Registered: July 2009
Junior Member
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 18:42 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
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
Re: Republish required when Eclipse starts [message #208280 is a reply to message #208225] Thu, 07 February 2008 14:45 Go to previous message
David Matheson is currently offline David Matheson
Messages: 3
Registered: July 2009
Junior Member
That bug is my problem exactly, thank you!
Previous Topic:ws-i compliance report
Next Topic:Goto Matching Bracket not working for JSP or JS file..?
Goto Forum:
  


Current Time: Sat Oct 25 18:21:28 GMT 2014

Powered by FUDForum. Page generated in 0.01565 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software