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

Bug 363479

Summary: Server -> clean... doesn't clean, just calls publish
Product: [WebTools] WTP ServerTools Reporter: Stephan Freund <stephan.freund>
Component: wst.serverAssignee: wst.server <wst.server-inbox>
Status: NEW --- QA Contact: Elson Yuen <eyuen7>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Stephan Freund CLA 2011-11-10 10:13:34 EST
Build Identifier: 20110218-0911

Calling clean... (on JBoss 5) doesn't clean, it does nothing different from publishe. If an EAR is deployed, clean doesn't call org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher#unpublish. AntPublisher also has no special treatment for getKind() == IServer.PUBLISH_CLEAN. Clean should call unpublish, then publish.

Reproducible: Always

Steps to Reproduce:
1. select server -> add and remove... -> add EAR
2. select server -> publish
3. select server -> clean...
Comment 1 Stephan Freund CLA 2011-11-10 10:15:36 EST
The current workaround for clean is to remove the EAR from the server, call publish, add the EAR back to the server, then call publish again. This is what clean should do.