<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-iam-1.0</outputDirectory>
            <excludes>
                <exclude>standalone/configuration/standalone.xml</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>${project.build.directory}/unpacked/overlay</directory>
            <outputDirectory>jboss-iam-1.0</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-iam-1.0/standalone/configuration</outputDirectory>
            <destName>standalone.xml</destName>
        </file>
    </files>

</assembly>
