[jboss-jira] [JBoss JIRA] (WFLY-3977) Properties file used for property substitution

Brian Stansberry (JIRA) issues at jboss.org
Tue Oct 14 09:43:36 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011596#comment-13011596 ] 

Brian Stansberry commented on WFLY-3977:
----------------------------------------

I think this is already supported. See [1]

My reading of that code and related code at [2] is that if the deployment archive, or a subdeployment archive (e.g. war inside an ear) has file META-INF/jboss.properties included, those properties will be made available for use in property resolution. Properties in a jboss.properties file in a top level deployment are visible to all subdeployments, while those in the subdeployment are only available to that subdeployment.

[1] https://github.com/wildfly/wildfly/blob/master/ee/src/main/java/org/jboss/as/ee/metadata/property/DeploymentPropertiesProcessor.java
[2] https://github.com/wildfly/wildfly/blob/master/ee/src/main/java/org/jboss/as/ee/metadata/property/DeploymentPropertyResolverProcessor.java

> Properties file used for property substitution 
> -----------------------------------------------
>
>                 Key: WFLY-3977
>                 URL: https://issues.jboss.org/browse/WFLY-3977
>             Project: WildFly
>          Issue Type: Feature Request
>          Components: Domain Management
>    Affects Versions: 8.1.0.Final
>         Environment: JBoss EAP 6.x
>            Reporter: Tom Ross
>            Assignee: Brian Stansberry
>
> Customer is deploying multiple copies of the same applicaiton but each copy has differnet set of locations. They can use properties substituaiton in annoatations but that works only with global properties that are defined at global level. They would like to be able to supply a properties file with each deployment that would be used for properties  substitution during deployment. 



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list