<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
    <id>installation-directory</id>
    <formats>
        <format>tar</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
    <dependencySets>
        <dependencySet>
            <outputDirectory>lib</outputDirectory>
            <scope>runtime</scope>
            <excludes>
                <exclude>org.igniterealtime.spark:emoticons</exclude>
            </excludes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>xtra/emoticons</outputDirectory>
            <scope>runtime</scope>
            <includes>
                <include>org.igniterealtime.spark:emoticons</include>
            </includes>
            <outputFileNameMapping>${artifact.classifier}.${artifact.extension}</outputFileNameMapping>
        </dependencySet>
    </dependencySets>

    <fileSets>
        <fileSet>
            <directory>${project.basedir}/src/main/native/</directory>
            <outputDirectory>lib</outputDirectory>
        </fileSet>

        <fileSet>
            <!-- create an empty directory that's named 'plugins' -->
            <directory>src/main/resources/</directory>
            <outputDirectory>plugins</outputDirectory>
            <directoryMode>0755</directoryMode>
            <excludes>
                <exclude>**/*</exclude>
            </excludes>
        </fileSet>

        <fileSet>
            <directory>${project.basedir}/src/main/resources/sounds/</directory>
            <outputDirectory>resources/sounds</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>${project.basedir}/src/documentation/</directory>
            <outputDirectory>documentation</outputDirectory>
        </fileSet>

    </fileSets>


    <files>
        <file>
            <source>${project.basedir}/src/main/resources/startup.bat</source>
            <outputDirectory>bin</outputDirectory>
            <fileMode>0755</fileMode>
        </file>
        <file>
            <source>${project.basedir}/src/main/resources/startup.sh</source>
            <outputDirectory>bin</outputDirectory>
            <fileMode>0755</fileMode>
        </file>
        <file>
            <source>${project.basedir}/src/main/resources/Info.plist</source>
            <outputDirectory>resources</outputDirectory>
        </file>
        <file>
            <source>${project.basedir}/src/main/resources/jniwrap.dll</source>
            <outputDirectory>resources</outputDirectory>
        </file>
        <file>
            <source>${project.basedir}/src/main/resources/jniwrap.lic</source>
            <outputDirectory>resources</outputDirectory>
        </file>
        <file>
            <source>${project.basedir}/src/main/resources/startup.bat</source>
            <outputDirectory>resources</outputDirectory>
        </file>
        <file>
            <source>${project.basedir}/src/main/resources/startup.sh</source>
            <outputDirectory>resources</outputDirectory>
        </file>
        <file>
            <source>${project.basedir}/src/main/resources/systeminfo.dll</source>
            <outputDirectory>resources</outputDirectory>
        </file>
    </files>
</assembly>
