1 Reply Latest reply on Feb 20, 2009 2:17 AM by Max Rydahl Andersen

    JBT Nightly Deleting project does not clean up metadata

    Bruce Link Newbie

      Deleted a project created with new seam project (ear). Eclipse 3.4.1 builds deployment in .metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_4.2_Server\deploy, including data source xml files. When I delete the project (right click on project and select delete), checking to delete all files, the project remains configured on the server (in the JBoss server view and also in the Add and remove Projects window). The metadata in org.jboss.ide.eclipse.as.core also remains.

      Shouldn't this data also be deleted? I would expect that deleting a project also deletes any derived files as well.

      I would think it is reasonable for JBT to remove the project from the server as well, since it should no longer exist (even if associated files have not been deleted). Is there another box to check to make this happen. I do not like cleaning up using the file explorer, because there may be other configuration I do not know about and may leave the tools in an inconsistent state.

      If the project is left deployed, there is concern that creating a new project with the same name will be corrupted with previous project residue.

        • 1. Re: JBT Nightly Deleting project does not clean up metadata
          Max Rydahl Andersen Master

          It's a tricky question ;)

          The deployed files are not actually "derived" files, it could be you deployed to something you really wanted to stay deployed no matter if the file or project is deleted from your workspace (actually deleted project by default just mean you remove it from the workspace - not physically delete it)

          In any case I agree that it should be an option when removing a project or resource and we have had the feature request before but I can't remember why it was not added (at least as an option). I've pinged Rob to see if he remembers.