]
Bartosz Spyrko-Smietanko moved JBEAP-20012 to WFLY-13720:
---------------------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-13720 (was: JBEAP-20012)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: EE
(was: EE)
Fix Version/s: (was: 7.3.3.GA)
ee global-modules should not allow duplicates
---------------------------------------------
Key: WFLY-13720
URL:
https://issues.redhat.com/browse/WFLY-13720
Project: WildFly
Issue Type: Bug
Components: EE
Reporter: Bartosz Spyrko-Smietanko
Assignee: Bartosz Spyrko-Smietanko
Priority: Minor
ee global-modules should not allow duplicates since once it is added once, it does not
make sense to add a duplicate.
{code:java}
[standalone@embedded /] /subsystem=ee:list-add(name=global-modules,
value={name=javax.api}) {code}
Resulting in:
{code:java}
<subsystem xmlns="urn:jboss:domain:ee:4.0">
<global-modules>
<module name="javax.api"/>
<module name="javax.api"/>
</global-modules> {code}
Or
{code:java}
[standalone@embedded /]
/subsystem=ee:write-attribute(name=global-modules,value=[{name=javax.api},{name=javax.api},
{name=javax.api}])
{code}
Resulting in:
{code:java}
<subsystem xmlns="urn:jboss:domain:ee:4.0">
<global-modules>
<module name="javax.api"/>
<module name="javax.api"/>
<module name="javax.api"/>
</global-modules> {code}