Have property files that are loaded per OS type/deployment environment.
e.g. "build.dev.properties" & "build.prod.properties" or a set of
"build.${os.name}.properties" files (but then you have to do the deploy
process on the same OS as the deploy target).

So you can have a "${deploy.persist.dir}" property defined in each one, and
dependent on where you are deploying to.

If necessary, you can have a property defined in one file (that is loaded
first) and then use that in another property file.  e.g.:
${deploy.persist.base.dir} defined in build.dev.properties (& .prod.) and
then another like
"build.persist.dir=${build.persist.base.dir}/subdir/subdir" in
build.properties.


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 29, 2003 8:59 AM
> To: Tomcat Users List
> Subject: Re: Where to store files in a portable app?
>
>
> Hi Kaarle,
>
> Thx for the input.
> Unfortunately the development system is Windows and
> production system is
> Unix, so absolute paths will never be the same.
>
> Do you have any idea for how to manage properties files which will be
> different for windows than unix?
> Should I create a separate web_local and web_remote directory
> and make a
> simple ant copy task to distinguish production/development?
> Or is there a more elegant approach to this?
>
> thx alot
> Johannes
>
>
>
>
> Kaarle Kaila <[EMAIL PROTECTED]>
> 29.03.2003 15:41
> Please respond to
> "Tomcat Users List" <[EMAIL PROTECTED]>
>
>
> To
> "Tomcat Users List" <[EMAIL PROTECTED]>
> cc
>
> Subject
> Re: Where to store files in a portable app?
>
>
>
>
>
>
> At 15:35 29.3.2003 +0100, you wrote:
> >HI there,
> >
> >In my app I need to store files after a transaction is complete.
> >I want to keep my application portable, so where should I store such
> files
> >to??
>
> I would put the directory address for the files in a properties file
> (ResourceBundle)
> Then you can really put them anywhere you like.
>
> regards
> Kaarle
>
>
> >Should I use a /output/.. directory in the root area or
> where else could
> >be a smart location?
> >
> >Any ideas on this topic??
> >
> >thx alot
> >Johannes
>
> ---------------------------------------------
> Kaarle Kaila
> http://www.iki.fi/kaila
> mailto:[EMAIL PROTECTED]
> tel: +358 50 3725844
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to