+ 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?
--
Leszek Gawron, 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