Overwriting and not overwriting when re-deploying a warfile
Hi! I have a problem when i deploy a new version of my webapp. I want some of the files in my exisiting webapp to be overwritten, and I want some to be left as they are. Let's say that this is the structure of my app: /myapp/templates /myapp/uploads Templates contains the templates that builds my pages. If I change one of these from one release to another, I want it to be overwritten. If I remove it, I want it to be removed. Upload however contains files uploaded by the users. I always want these to stay on the server and not be removed when I re-deploy a war-file. Is this possible in any way? Right now, all my files are replaced with the ones in the war file. /Ludwig
Re: Overwriting and not overwriting when re-deploying a warfile
2010/1/14 Ludwig Magnusson lud...@itcatapult.com: I have a problem when i deploy a new version of my webapp. I want some of the files in my exisiting webapp to be overwritten, and I want some to be left as they are. [...] Is this possible in any way? Not if the files are stored directly under the webapp. I believe the usual workaround is to store the files somewhere else and add a Context to serve them. You may need to investigate single sign-on if users require authorisation to view particular files. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Overwriting and not overwriting when re-deploying a warfile
Ok thanks, I'll investigate the solution. /Ludwig -Original Message- From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Sent: den 14 januari 2010 11:29 To: Tomcat Users List Subject: Re: Overwriting and not overwriting when re-deploying a warfile 2010/1/14 Ludwig Magnusson lud...@itcatapult.com: I have a problem when i deploy a new version of my webapp. I want some of the files in my exisiting webapp to be overwritten, and I want some to be left as they are. [...] Is this possible in any way? Not if the files are stored directly under the webapp. I believe the usual workaround is to store the files somewhere else and add a Context to serve them. You may need to investigate single sign-on if users require authorisation to view particular files. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org