<assembly>
    <id>eap6-server-dist</id>

    <formats>
        <format>zip</format>
        <format>tar.gz</format>
    </formats>

    <includeBaseDirectory>false</includeBaseDirectory>

    <fileSets>
        <fileSet>
            <directory>${project.build.directory}/unpacked/jboss-eap-6.4</directory>
            <outputDirectory>jboss-eap-6.4</outputDirectory>
            <excludes>
                <exclude>standalone/configuration/standalone.xml</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>${project.build.directory}/unpacked/overlay</directory>
            <outputDirectory>jboss-eap-6.4</outputDirectory>
            <excludes>
                <exclude>standalone/configuration/standalone-keycloak.xml</exclude>
            </excludes>
        </fileSet>
    </fileSets>

    <files>
        <file>
            <source>${project.build.directory}/unpacked/overlay/standalone/configuration/standalone-keycloak.xml</source>
            <outputDirectory>jboss-eap-6.4/standalone/configuration</outputDirectory>
            <destName>standalone.xml</destName>
        </file>
    </files>

</assembly>
