You could have ant replace the value of the directory name in your properties file during the build. As part of your build process, ant would have to copy the properties file from its source directory into the target directory where it will be used for the build. See the ant docs for <filter> and <copy> for more details.
> -----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]
