Hi Tony,
as a rule of thumb: never store anything in any war directories from your webapp, that
you want to keep through re-deployment. Instead store it in some directory that you
set as servletcontext attribute. In case of distributed applications you can also make
sure that the directory is in a network path.
On startup you can always copy files from the outside directory into your war.
-hendrik
> -----Ursprungliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Auftrag von Tony Spencer
> Gesendet: Freitag, 23. April 2004 14:42
> An: 'Research Triangle Java User's Group mailing list.'
> Betreff: [Juglist] WAR deploy deletes everything
>
>
> I'm currently redesigning my deployment process to deploy changes
> via a WAR
> file. I have found that Caucho Resin deletes all existing files
> and folders
> before unpacking a war file (perhaps this is true for all engines).
>
> I have some static files that are generated by the server in specific
> folders that I do not want deleted. Is there anyway to prevent
> the deletion
> of those files?
>
> Example:
> Current site structure:
> www/
> images/
> includes/
> do_not_delete/
> file1
> file2
>
> After war deploy:
> www/
> images/
> includes/
> do_not_delete/
>
>
>
>
> T O N Y S P E N C E R
> Notsleepy LLC
> 6512 Six Forks Rd.
> Suite 502-B Raleigh, NC 27615
> Phone: 919.848.0230
> Mobile: 415.637.6481
> [EMAIL PROTECTED]
>
>
>
>
> _______________________________________________
> Juglist mailing list
> [EMAIL PROTECTED]
> http://trijug.org/mailman/listinfo/juglist_trijug.org
_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org