[jboss-jira] [JBoss JIRA] (WFBUILD-25) Unable to specify a feature pack content to include

Eduardo Martins (JIRA) issues at jboss.org
Fri Aug 18 19:09:00 EDT 2017


Eduardo Martins created WFBUILD-25:
--------------------------------------

             Summary: Unable to specify a feature pack content 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>            
            <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 ".". 



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


More information about the jboss-jira mailing list