<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
  <id>distribution</id>
  
  <formats>
    <format>dir</format>
    <format>tar.gz</format>
    <!--<format>zip</format>-->
  </formats>

    <!-- Adds dependencies to zip package under lib directory -->
    <dependencySets>
        <dependencySet>
            <!--
               Project artifact is not copied under library directory since
               it is added to the root directory of the zip package.
           -->
            <useProjectArtifact>false</useProjectArtifact>
            <outputDirectory>lib</outputDirectory>
            <unpack>false</unpack>
        </dependencySet>
    </dependencySets>

    <fileSets>
        <!--
           Adds startup scripts to the root directory of zip package. The startup
           scripts are located to src/main/scripts directory as stated by Maven
           conventions.
       -->
        <fileSet>
      		<outputDirectory></outputDirectory>
      		<includes>
		        <include>LICENSE</include>
        		<include>README</include>
      		</includes>
      		<fileMode>0622</fileMode>
    	</fileSet>
    
        <fileSet>
            <directory>bin</directory>
            <outputDirectory>bin</outputDirectory>
            <includes>
                <include>*.sh</include>
            </includes>
            <lineEnding>unix</lineEnding>
      		<fileMode>0755</fileMode>
        </fileSet>
     
        <fileSet>
            <directory>examples</directory>
            <outputDirectory>examples</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>bin</directory>
            <outputDirectory>bin</outputDirectory>
            <includes>
                <include>*.bat</include>
            </includes>
            <lineEnding>dos</lineEnding>
            <fileMode>0755</fileMode>
        </fileSet>

        <fileSet>
            <directory>bin</directory>
            <outputDirectory>bin</outputDirectory>
            <includes>
                <include>*.ps1</include>
            </includes>
            <lineEnding>dos</lineEnding>
            <fileMode>0755</fileMode>
        </fileSet>
       
    </fileSets>
</assembly>
