<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>bin</id>
  <formats>
	<format>tar.gz</format>
<!--     <format>tar.bz2</format> -->
    <format>zip</format>
  </formats>
  <fileSets>
    <fileSet>
      <directory>${project.parent.basedir}</directory>
      <outputDirectory>/</outputDirectory>
      <includes>
        <include>README*</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>${project.build.directory}</directory>
      <outputDirectory>linux</outputDirectory>
      <includes>
        <include>zag2.jar</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>${basedir}/res</directory>
      <outputDirectory>linux</outputDirectory>
      <includes>
        <include>zag</include>
      </includes>
      <fileMode>0755</fileMode>
    </fileSet>
    <fileSet>
      <directory>${project.build.directory}</directory>
      <outputDirectory>win</outputDirectory>
      <includes>
        <include>zag2.exe</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>${project.build.directory}/zag2.app</directory>
      <outputDirectory>macosx/zag2.app</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${project.parent.basedir}/license</directory>
      <outputDirectory>license</outputDirectory>
    </fileSet>
  </fileSets>
</assembly>