<?xml version="1.0" encoding="UTF-8"?>

<!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.    
-->

<assembly>
  <id>bin</id>
  <formats>
    <format>tar.gz</format>
    <format>zip</format>
  </formats>

  <includeBaseDirectory>true</includeBaseDirectory>
  <baseDirectory>/apache-opennlp-${project.version}</baseDirectory>

  <dependencySets>
    <dependencySet>
      <scope>runtime</scope>
      <unpack>false</unpack>
      <useProjectArtifact>false</useProjectArtifact>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>lib</outputDirectory>
      <useTransitiveDependencies>true</useTransitiveDependencies>
    </dependencySet>
  </dependencySets>

  <fileSets>
    <fileSet>
      <directory>src/main/readme</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>.</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>src/main/resources</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>conf</outputDirectory>
      <includes>
        <include>log4j2.xml</include>
      </includes>
    </fileSet>

    <fileSet>
      <directory>.</directory>
      <filtered>true</filtered>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <includes>
        <include>RELEASE_NOTES.html</include>
      </includes>
    </fileSet>

    <fileSet>
      <directory>target</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>.</outputDirectory>
      <includes>
        <include>README.html</include>
      </includes>
    </fileSet>

    <fileSet>
      <directory>target/issuesFixed</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>issuesFixed</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>src/main/bin</directory>
      <fileMode>755</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>bin</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-morfologik-addon/src/main/bin</directory>
      <fileMode>755</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>bin</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-extensions/opennlp-spellcheck/src/main/bin</directory>
      <fileMode>755</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>bin</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-tools/lang</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>lang</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-docs/target/docbkx/html</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/manual</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-docs/target/docbkx/pdf</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <includes>
        <include>*.pdf</include>
      </includes>
      <outputDirectory>docs</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-docs/target/docbkx</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <includes>
        <include>*.epub</include>
      </includes>
      <outputDirectory>docs</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-api/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-api</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-cli/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-cli</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-formats/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-formats</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-ml/opennlp-dl/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-dl</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-ml/opennlp-ml-commons/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-ml-commons</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-ml/opennlp-ml-bayes/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-ml-bayes</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-ml/opennlp-ml-maxent/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-ml-maxent</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-ml/opennlp-ml-perceptron/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-ml-perceptron</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-ml/opennlp-ml-libsvm/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-ml-libsvm</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-model-resolver/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-model-resolver</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-core/opennlp-runtime/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-runtime</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-tools/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-tools</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-extensions/opennlp-morfologik/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-morfologik</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-extensions/opennlp-spellcheck/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-spellcheck</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-extensions/opennlp-uima/target/reports/apidocs</directory>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/apidocs/opennlp-uima</outputDirectory>
    </fileSet>

    <fileSet>
      <directory>../opennlp-extensions/opennlp-uima/descriptors</directory>
      <filtered>true</filtered>
      <fileMode>644</fileMode>
      <directoryMode>755</directoryMode>
      <outputDirectory>docs/opennlp-uima-descriptors</outputDirectory>
    </fileSet>

  </fileSets>
</assembly>
