[jboss-jira] [JBoss JIRA] (WFBUILD-25) Unable to specify feature pack's contents and modules to include

Eduardo Martins (JIRA) issues at jboss.org
Sat Aug 19 08:04:01 EDT 2017


     [ https://issues.jboss.org/browse/WFBUILD-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eduardo Martins updated WFBUILD-25:
-----------------------------------
    Description: 
The following server-provisioning.xml example should filter the feature pack's content, unless file path matches pattern "include.me":

{code}
<server-provisioning>
    <feature-packs>
        <feature-pack>            
            <modules include="false">
                <filter pattern="*/me/include/main/module.xml" include="true"/>
            </contents>
            <contents include="false">
                <filter pattern="include.me" include="true"/>
            </contents>
        </feature-pack>
    </feature-packs>
</server-provisioning>
{code}

The issue is that whenever "include" attribute in <modules/> or <contents /> element is set to "false" no filters are able to include content, see https://github.com/wildfly/wildfly-build-tools/blob/master/provisioning/src/main/java/org/wildfly/build/provisioning/ServerProvisioner.java#L495

A possible workaround for this would be to use filters with negative regex patterns, and include set as false, but char "?" is replaced by "." in the expression, so no chance to use "?!" or "?=".

  was:
The following server-provisioning.xml example should filter the feature pack's content, unless file path matches pattern "include.me":

{code}
<server-provisioning>
    <feature-packs>
        <feature-pack>            
            
<contents include="false">
                <filter pattern="include.me" include="true"/>
            </contents>
        </feature-pack>
    </feature-packs>
</server-provisioning>
{code}

The issue is that whenever "include" attribute in <contents /> element is set to "false" no filters are able to include content, see https://github.com/wildfly/wildfly-build-tools/blob/master/provisioning/src/main/java/org/wildfly/build/provisioning/ServerProvisioner.java#L495

A possible workaround for this would be to use filters with negative regex patterns, and include set as false, but "?!" is not considered and the "?" is replaced by ".". 



> Unable to specify feature pack's contents and modules to include
> ----------------------------------------------------------------
>
>                 Key: WFBUILD-25
>                 URL: https://issues.jboss.org/browse/WFBUILD-25
>             Project: WildFly Build Tools
>          Issue Type: Bug
>            Reporter: Eduardo Martins
>            Assignee: Eduardo Martins
>
> The following server-provisioning.xml example should filter the feature pack's content, unless file path matches pattern "include.me":
> {code}
> <server-provisioning>
>     <feature-packs>
>         <feature-pack>            
>             <modules include="false">
>                 <filter pattern="*/me/include/main/module.xml" include="true"/>
>             </contents>
>             <contents include="false">
>                 <filter pattern="include.me" include="true"/>
>             </contents>
>         </feature-pack>
>     </feature-packs>
> </server-provisioning>
> {code}
> The issue is that whenever "include" attribute in <modules/> or <contents /> element is set to "false" no filters are able to include content, see https://github.com/wildfly/wildfly-build-tools/blob/master/provisioning/src/main/java/org/wildfly/build/provisioning/ServerProvisioner.java#L495
> A possible workaround for this would be to use filters with negative regex patterns, and include set as false, but char "?" is replaced by "." in the expression, so no chance to use "?!" or "?=".



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list