<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>

  <fileSets>
    <!-- RandomizedRunner -->
    <fileSet>
      <directory>${project.parent.basedir}/randomized-runner/target</directory>
      <outputDirectory>lib</outputDirectory>
      <includes>
        <include>*.jar</include>
      </includes>
      <excludes>
        <exclude>*-sources.jar</exclude>
        <exclude>*-javadoc.jar</exclude>
      </excludes>
    </fileSet>

    <fileSet>
      <directory>${project.parent.basedir}/randomized-runner/target/apidocs</directory>
      <outputDirectory>api/randomizedtesting-runner</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>${project.parent.basedir}/junit4-ant/src/tasks</directory>
      <outputDirectory>docs/junit4-ant</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>${project.parent.basedir}/examples</directory>
      <outputDirectory>examples</outputDirectory>
      <excludes>
        <exclude>**/target/**</exclude>
        <exclude>**/.settings/**</exclude>
        <exclude>**/.classpath/**</exclude>
        <exclude>**/.project/**</exclude>
        <exclude>ant/pom.xml</exclude>
      </excludes>
    </fileSet>

    <!-- JUnit4 -->
    <fileSet>
      <directory>${project.parent.basedir}/junit4-ant/target</directory>
      <outputDirectory>lib</outputDirectory>
      <includes>
        <include>*.jar</include>
      </includes>
      <excludes>
        <exclude>*-sources.jar</exclude>
        <exclude>*-javadoc.jar</exclude>
        <exclude>*proguard*</exclude>
      </excludes>
    </fileSet>

    <fileSet>
      <directory>${project.parent.basedir}/junit4-ant/target/dependency</directory>
      <outputDirectory>lib</outputDirectory>
      <includes>
        <include>junit-*.jar</include>
      </includes>
    </fileSet>

    <fileSet>
      <directory>${project.parent.basedir}/junit4-ant/target/apidocs</directory>
      <outputDirectory>api/junit4-ant</outputDirectory>
    </fileSet>

    <!-- Licenses and boilerplate -->
    <fileSet>
      <directory>${project.parent.basedir}</directory>
      <outputDirectory>./</outputDirectory>
      <includes>
        <include>LICENSE</include>
        <include>README</include>
      </includes>
    </fileSet>    
  </fileSets>
</assembly>
