<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>source-package</id>
  <formats>
    <format>tar.gz</format>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <fileSets>
    <fileSet>
      <directory>${project.basedir}/bin</directory>
      <outputDirectory>bin</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${project.basedir}/conf</directory>
      <outputDirectory>conf</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${project.basedir}/zookeeper-client</directory>
      <excludes>
        <exclude>**/target/**</exclude>
      </excludes>
      <outputDirectory>zookeeper-client</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${project.basedir}/zookeeper-contrib</directory>
      <excludes>
        <exclude>**/target/**</exclude>
      </excludes>
      <outputDirectory>zookeeper-contrib</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${project.basedir}/zookeeper-docs</directory>
      <excludes>
        <exclude>**/target/**</exclude>
      </excludes>
      <outputDirectory>zookeeper-docs</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${project.basedir}/zookeeper-it</directory>
      <excludes>
        <exclude>**/target/**</exclude>
      </excludes>
      <outputDirectory>zookeeper-it</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${project.basedir}/zookeeper-jute</directory>
      <excludes>
        <exclude>**/target/**</exclude>
      </excludes>
      <outputDirectory>zookeeper-jute</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${project.basedir}/zookeeper-recipes</directory>
      <excludes>
        <exclude>**/target/**</exclude>
      </excludes>
      <outputDirectory>zookeeper-recipes</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${project.basedir}/zookeeper-server</directory>
      <excludes>
        <exclude>**/target/**</exclude>
      </excludes>
      <outputDirectory>zookeeper-server</outputDirectory>
    </fileSet>
  </fileSets>
  <files>
    <file>
      <source>${project.basedir}/pom.xml</source>
    </file>
    <file>
      <source>${project.basedir}/source-package.xml</source>
    </file>
    <file>
      <source>${project.basedir}/LICENSE.txt</source>
    </file>
    <file>
      <source>${project.basedir}/NOTICE.txt</source>
    </file>
    <file>
      <source>${project.basedir}/README.md</source>
    </file>
    <file>
      <source>${project.basedir}/README_packaging.txt</source>
    </file>

  </files>
</assembly>