<!--
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  ~ and other contributors as indicated by the @author tags.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<build xmlns="urn:wildfly:feature-pack-build:1.0">
    <dependencies>
        <artifact name="org.wildfly:wildfly-feature-pack" />
    </dependencies>
    <config>
        <standalone template="configuration/standalone/template.xml" subsystems="configuration/standalone/subsystems.xml" output-file="standalone/configuration/standalone.xml" />
        <domain template="configuration/domain/template.xml" subsystems="configuration/domain/subsystems.xml" output-file="domain/configuration/domain.xml" />
    </config>

    <copy-artifacts>
    </copy-artifacts>
    <mkdirs>
    </mkdirs>
    
    <file-permissions>
        <permission value="755">
            <filter pattern="*.sh" include="true"/>
        </permission>
        <permission value="700">
            <filter pattern="*/tmp/auth" include="true"/>
        </permission>
        <permission value="600">
            <filter pattern="*-users.properties" include="true" />
            <filter pattern="*/.installation" include="true"/>
        </permission>
    </file-permissions>
    <line-endings>
        <windows>
            <filter pattern="*.bat" include="true"/>
        </windows>
        <unix>
            <filter pattern="*.sh" include="true"/>
            <filter pattern="*.conf" include="true"/>
        </unix>
    </line-endings>
</build>