<?xml version="1.0"?>
<assembly>
    <id>zip</id>
    <formats>
        <format>zip</format>
    </formats>

    <includeBaseDirectory>true</includeBaseDirectory>

    <fileSets>
        <fileSet>
            <filtered>true</filtered>
            <directory>bin</directory>
            <outputDirectory>bin</outputDirectory>
            <lineEnding>dos</lineEnding>
            <includes>
                <include>elasticsearch.bat</include>
                <include>plugin.bat</include>
                <include>service.bat</include>
            </includes>
        </fileSet>
        <fileSet>
            <filtered>false</filtered>
            <directory>bin</directory>
            <outputDirectory>bin</outputDirectory>
            <includes>
                <include>*.exe</include>
            </includes>
        </fileSet>
        <fileSet>
            <filtered>true</filtered>
            <directory>bin</directory>
            <outputDirectory>bin</outputDirectory>
            <fileMode>0755</fileMode>
            <directoryMode>0755</directoryMode>
            <lineEnding>unix</lineEnding>
            <includes>
                <include>elasticsearch.in.sh</include>
                <include>elasticsearch</include>
                <include>plugin</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>lib/sigar</directory>
            <outputDirectory>lib/sigar</outputDirectory>
            <includes>
                <include>*</include>
            </includes>
        </fileSet>
    </fileSets>

    <componentDescriptors>
        <componentDescriptor>src/main/assemblies/common-bin.xml</componentDescriptor>
    </componentDescriptors>
</assembly>