Description
It would be great to have a key to resolve the ProjectStage that only contains uppercase letters and underscores to ensure it can be overwritten by an environment variable. Have encountered some problems when deploying to Cloud Foundry because a "." is not accepted in the name of an environment variable.
My suggestions would be to add 'DELTASPIKE_PROJECT_STAGE' to org.apache.deltaspike.core.util.ProjectStageProducer.java:
org.apache.deltaspike.core.util.ProjectStageProducer.java
/** * These config keys will get used to detect the ProjectStage. * We iterate through them until we find the first non-empty value. */ public static final String[] CONFIG_SETTING_KEYS = { //TODO discuss it "org.apache.deltaspike.ProjectStage", "javax.faces.PROJECT_STAGE", "faces.PROJECT_STAGE", "DELTASPIKE_PROJECT_STAGE" };