cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: [2.2] Configuration
Date Tue, 30 May 2006 08:47:39 GMT
Jorg Heymans wrote:
> Reinhard Poetz wrote:
> 
>> Suppose you have two environments: development (dev) and production
>> (prod). If you create the web application, you might need different
>> .xconf (database connections, root sitemap, ...) values and different
>> properties.
> 
> ...
> 
>> I propose that we have a directory "src/main/webapp-profiles" that
>> contains all files for different profiles:
>>
>> src/main/webapp-profiles/dev/WEB-INF/xconf/cocoon-sitemap.xconf
>> src/main/webapp-profiles/prod/WEB-INF/conf/cocoon-sitemap.xconf
>> src/main/wenbapp-profiles/dev/WEB-INF/properties/core.properties
>> src/main/wenbapp-profiles/prod/WEB-INF/properties/core.properties
> 
> Just fyi, you can define placeholders a la ${my.db.url} in text files
> and have these replaced by maven during build time.
which won't work for those who use eclipse as an IDE - the source files 
will still contain ${my.db.url} instead of actual url. Every eclipse 
rebuild will put unchanged files in target directory.


-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message