<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
  <id>all</id>
  <formats>
    <format>tar.gz</format>
  </formats>
  <baseDirectory>/${artifactId}-${version}</baseDirectory>
  <files>
	<file>
		<source>LICENSE</source>
		<outputDirectory>/</outputDirectory>
	</file>
    <file>
        <source>VERSION</source>
        <outputDirectory>/</outputDirectory>
    </file>    
	<file>
		<source>conf/log4j.properties.in</source>
		<outputDirectory>/bin</outputDirectory>
		<destName>log4j.properties</destName>
	</file>
  </files>
  <fileSets>
	<fileSet>
		<directory>bin</directory>
		<outputDirectory>/bin</outputDirectory>
	</fileSet>
	<fileSet>
		<directory>conf</directory>
		<outputDirectory>/conf</outputDirectory>
	</fileSet>
	<fileSet>
	  <directory>src/main/assembly</directory>
	  <outputDirectory>/logs</outputDirectory>
	  <excludes>
		<exclude>*</exclude>
	  </excludes>
	</fileSet>
	<fileSet>
	  <directory>src/main/assembly</directory>
	  <outputDirectory>/data</outputDirectory>
	  <excludes>
		<exclude>*</exclude>
	  </excludes>
	</fileSet>
  </fileSets>
  <dependencySets>
    <dependencySet>
      <outputDirectory>/lib</outputDirectory>
      <excludes>
        <exclude>mx4j:mx4j-tools</exclude>
      </excludes>
    </dependencySet>
    <dependencySet>
      <outputDirectory>/lib/optional</outputDirectory>
      <includes>
        <include>mx4j:mx4j-tools</include>
      </includes>
    </dependencySet>
  </dependencySets>
</assembly>
