You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2016/10/19 21:56:59 UTC
[jira] [Commented] (DELTASPIKE-1208) deltaspike configuration:
Variable Replacement in Configured Values is NOT fully stage aware
[ https://issues.apache.org/jira/browse/DELTASPIKE-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15589991#comment-15589991 ]
John D. Ament commented on DELTASPIKE-1208:
-------------------------------------------
Would you be able to raise a PR with this change? You have multiple checkstyle violations which won't pass our basic checks. See also http://deltaspike.apache.org/source.html
> deltaspike configuration: Variable Replacement in Configured Values is NOT fully stage aware
> --------------------------------------------------------------------------------------------
>
> Key: DELTASPIKE-1208
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1208
> Project: DeltaSpike
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 1.6.1
> Reporter: Valentin Maechler
> Assignee: John D. Ament
> Fix For: 1.7.1
>
> Attachments: DELTASPIKE-1208.patch
>
>
> using the following apache-deltaspike.properties
> {code}
> some-service-url=${edge-server-url}/some-service
> edge-server-url=undefined
> edge-server-url.Development=http://development:8081
> edge-server-url.Staging=http://staging:8081
> edge-server-url.Production=http://prod:8081
> {code}
> and executing the following code:
> {code}
> System.out.println("some-service-url="+ConfigResolver.getProjectStageAwarePropertyValue("some-service-url"));
> {code}
> having the following java VM arg set:
> {code}
> -Dorg.apache.deltaspike.ProjectStage=Staging
> {code}
> should result in the output:
> some-service-url=http://staging:8081/some-service
> I have already contributed a bug fix for DELTASPIKE-1167 - unfortunately that didn't fully solve the issue.
> -I plan to provide a fix for this soon.- [UPDATE] patch added
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)