facebook

Need to rm directory on WAR deploy

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #272584 Reply

    cmikos
    Member

    I want to remove the exploded directory which is created when Tomcat starts when I deploy a war file.

    I am deploying to a WAR because I find it most reliable to let tomcat handle the exploding on startup, I would like to delete /webapps/XXX before or after my updated WAR is deployed to /webapps/XXX.war

    #272590 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    This is a Tomcat behavior, it uncompressed the WAR and then builds it to the work directory as it runs. Redeploying a new WAR file should trigger Tomcat to see the updated Timestamp and reuncompress it.

    Otherwise if you absolutely want to remove that dir, you’ll need to do it manually. It’s not controlled by MYEclipse.

    I would point out that deploying in exploded format will give you the behavior you want and your dir will stay updated with your project in real time.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Need to rm directory on WAR deploy

You must be logged in to post in the forum log in