cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Stevens" <insomniacpeng...@googlemail.com>
Subject Re: How to access configuration files and properties after packaging
Date Thu, 03 Jul 2008 11:37:21 GMT
2008/7/3 Robin Rigby <robin@gondolier.org.uk>:
> Here is one way that seems to work.  Make a separate set of configuration
> for development and the default for production.
>
> \src\main\resources\META-INF\cocoon\properties\config.properties
> \src\main\resources\META-INF\cocoon\dev\properties\config.properties
>
> and run during development with
>
> mvn -Dorg.apache.cocoon.mode=dev jetty:run

Safer, surely, to make development the default and configure the
production server with the system property?  Otherwise a developer who
forgets the -D when testing out some code changes could completely
mess up your live data...


Andy.
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku application

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message