1) make sure you have a dynamic web project to publish
2) make sure you have a running (started) server adapter for a JBoss AS7
3) open up the server adapter and uncheck "Deploy projects as compressed archives"
4) add your project to the server adapter and wait until its published
5) open the server adapter, check "Deploy projects as compressed archives", but DONT SAVE
6) change a artifact in your dynamic web project (ex. a html file) and save the editor (html-editor, java editor) you use to do the change
Result:
Error pops up that tells you that the project could not be published. The publisher actually tried to delete the war-file and could not since you published the war as exploded war and it's therefore still present as directory on AS.
Expected:
No error pops up. Actually the publisher should try to delete the folder and not the war-file (since we did not save the editor!!)