Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338630

Summary: Dnd-ing a project does not republish it
Product: [WebTools] WTP ServerTools Reporter: Krzysztof Daniel <krzysztof.daniel>
Component: jst.serverAssignee: Angel Vera <arvera>
Status: RESOLVED FIXED QA Contact: Angel Vera <arvera>
Severity: enhancement    
Priority: P3 CC: krzysztof.daniel
Version: unspecified   
Target Milestone: 3.2.4   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/109040
Whiteboard:
Attachments:
Description Flags
Trivial fix proposition arvera: iplog+

Description Krzysztof Daniel CLA 2011-03-02 04:11:31 EST
org.eclipse.wst.server.ui.internal.cnf.ServersViewDropAdapterAssistant.doRunOnServerAction(IServer, Object) breaks the flow if project has been already published.

if (ServerUtil.containsModule(server, parents[0], null))
						return false;

It should do a republish instead.
Comment 1 Krzysztof Daniel CLA 2011-03-04 02:21:08 EST
Further investigation revealed that DnDing a project does not cause republish to happen. It is just a configuration. It is expected that a publish will also happen.

(Note that republish will not happen if you do not have enabled automatic publish after resource change).
Comment 2 Krzysztof Daniel CLA 2011-03-14 09:35:02 EDT
Tim,
do you think we could implement something like this?
Comment 3 Angel Vera CLA 2011-03-14 10:11:17 EDT
Hi Christophe, 

I would expect the DND to have the same behaviour as the right click Run As > Run on Server. Are you saying that they are not the same?
Comment 4 Krzysztof Daniel CLA 2011-03-14 17:26:57 EDT
That's the problem. If you disable the auto publish you will see.
Comment 5 Krzysztof Daniel CLA 2011-03-16 04:49:03 EDT
Created attachment 191283 [details]
Trivial fix proposition
Comment 6 Krzysztof Daniel CLA 2011-04-06 02:45:03 EDT
Angel, are there any plans about this bug?
Comment 7 Angel Vera CLA 2011-04-06 16:50:24 EDT
Changes committed to 32M
Comment 8 Angel Vera CLA 2011-04-06 16:54:40 EDT
changes released to 32M
Comment 9 Angel Vera CLA 2011-04-19 11:42:22 EDT
changes committed to HEAD(3.3)
Comment 10 Angel Vera CLA 2011-04-19 15:35:42 EDT
Changes released to HEAD(3.3)
Comment 11 Eclipse Genie CLA 2017-10-11 16:36:23 EDT
New Gerrit change created: https://git.eclipse.org/r/109040