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

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

    <includeBaseDirectory>true</includeBaseDirectory>

    <!-- If war is filtered it will get corrupted. Only need to filter module.xml -->
    <fileSets>
        <fileSet>
            <directory>target/${project.build.finalName}</directory>
            <outputDirectory/>
            <filtered>true</filtered>
            <includes>
                <include>**/module.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>target/${project.build.finalName}</directory>
            <outputDirectory/>
            <filtered>false</filtered>
            <excludes>
                <exclude>**/module.xml</exclude>
                <exclude>welcome-content/**</exclude>
                <exclude>appclient</exclude>
                <exclude>appclient/*</exclude>
                <exclude>standalone/deployments</exclude>
                <exclude>standalone/deployments/*</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>src/main/welcome-content</directory>
            <outputDirectory>welcome-content</outputDirectory>
            <includes>
                <include>*.*</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../forms/common-themes/src/main/resources/theme</directory>
            <outputDirectory>standalone/configuration/themes</outputDirectory>
            <includes>
                <include>**/**</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../</directory>
            <includes>
                <include>License.html</include>
            </includes>
            <outputDirectory></outputDirectory>
        </fileSet>
    </fileSets>

    <files>
        <file>
            <source>../server-overlay/src/main/themes/README.txt</source>
            <outputDirectory>standalone/configuration/themes</outputDirectory>
        </file>
        <file>
            <source>../server-overlay/src/main/providers/README.txt</source>
            <outputDirectory>standalone/configuration/providers</outputDirectory>
        </file>
    </files>
</assembly>
