You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Greg Kontos <ko...@etehigraphy.com> on 2008/01/15 17:36:56 UTC
How can I preserve a directory on Deployment?
Hello,
I have an application with an uploads directory located within the
project root directory ( $TOMCAT_HOME/webapps/${project.dir}/uploads )
When I redeploy my .war file I want this upload directory to remain
unchanged. Is there a way for me to tell Tomcat to leave this directory
unchanged when the .war file is unpacked?
If not, I suppose I need to move my uploads directory to something
like $TOMCAT_HOME/uploads ... or is there a better place for an upload
folder to live on the server?
Thanks for any help,
G. Kontos
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How can I preserve a directory on Deployment?
Posted by Greg Kontos <ko...@etehigraphy.com>.
Thanks Filip. I figured I'd check for other options before moving ahead....
Filip Hanik - Dev Lists wrote:
> you answered your own question, yes, move the directory external to
> the webapp
>
> Filip
>
> Greg Kontos wrote:
>> Hello,
>>
>> I have an application with an uploads directory located within the
>> project root directory ( $TOMCAT_HOME/webapps/${project.dir}/uploads )
>>
>> When I redeploy my .war file I want this upload directory to remain
>> unchanged. Is there a way for me to tell Tomcat to leave this
>> directory unchanged when the .war file is unpacked?
>> If not, I suppose I need to move my uploads directory to something
>> like $TOMCAT_HOME/uploads ... or is there a better place for an
>> upload folder to live on the server?
>>
>> Thanks for any help,
>>
>> G. Kontos
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How can I preserve a directory on Deployment?
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
you answered your own question, yes, move the directory external to the
webapp
Filip
Greg Kontos wrote:
> Hello,
>
> I have an application with an uploads directory located within the
> project root directory ( $TOMCAT_HOME/webapps/${project.dir}/uploads )
>
> When I redeploy my .war file I want this upload directory to remain
> unchanged. Is there a way for me to tell Tomcat to leave this
> directory unchanged when the .war file is unpacked?
> If not, I suppose I need to move my uploads directory to something
> like $TOMCAT_HOME/uploads ... or is there a better place for an upload
> folder to live on the server?
>
> Thanks for any help,
>
> G. Kontos
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How can I preserve a directory on Deployment?
Posted by Jonadan <jo...@yahoo.com>.
Option 1: Deploy as unpacked. Simple and I use!
Option 2: If you deploy as war files, you may be able to read files
inside wars using classloader resource stream readers.
Greg Kontos wrote:
>
> When I redeploy my .war file I want this upload directory to remain
> unchanged. Is there a way for me to tell Tomcat to leave this directory
> unchanged when the .war file is unpacked?
>
--
View this message in context: http://www.nabble.com/How-can-I-preserve-a-directory-on-Deployment--tp14845804p14909597.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How can I preserve a directory on Deployment?
Posted by "Mark H. Wood" <mw...@IUPUI.Edu>.
Well, I probably wouldn't put that directory anywhere near
$TOMCAT_HOME; I'd want it somewhere on /var with other volatile and
temporary stuff.
--
Mark H. Wood, Lead System Programmer mwood@IUPUI.Edu
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.