-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 23 Aug 2006, Carsten Ziegeler wrote:

Date: Wed, 23 Aug 2006 10:15:11 +0200
From: Carsten Ziegeler <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: running modes

Leszek Gawron wrote:
+        if ( !Arrays.asList(SettingsDefaults.RUNNING_MODES).contains(mode) ) {
+            final String msg =
+                "Invalid running mode: " + mode + " - Use one of: " + 
Arrays.asList(SettingsDefaults.RUNNING_MODES);
+            servletContext.log(msg);
+            throw new IllegalArgumentException(msg);
+        }

Do we really need to narrow running modes to 'prod', 'dev' and 'test'?
After all these all are just directory names under
WEB-INF/cocoon/properties. Why not allow users create as many profiles
as they need?

We discussed this some weeks ago and came to the conclusion that
predefined running modes are easier to understand. It gives clear
guidelines to the user about what is possible and what they should use.
If we open this up to anything, users might get lost in what they
could/should use.

Do you need more modes?

Actually I've hit that wall now as well as I have to deliver lots of different testing scenarios and the property mechanism of Cocoon is more comfortable than using Maven profiles to filter property values (which needs a rebuild every time you need another set of properties)

- -- Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE7Bk4LNdJvZjjVZARAsf3AKDPC9M/UrgMObGm27b/iZ6MOAYb+ACfRRqo
a2xqkSG7/9wFbPRZ7LbGQOc=
=G2gO
-----END PGP SIGNATURE-----

Reply via email to