Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363479 - Server -> clean... doesn't clean, just calls publish
Summary: Server -> clean... doesn't clean, just calls publish
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.server CLA
QA Contact: Elson Yuen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 10:13 EST by Stephan Freund CLA
Modified: 2011-11-10 10:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.