<!--

    Copyright (C) 2003-2017 eXo Platform SAS.

    This is free software; you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation; either version 3 of
    the License, or (at your option) any later version.

    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this software; if not, write to the Free
    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    02110-1301 USA, or see the FSF site: http://www.fsf.org.

-->
<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>chatserver-exploded</id>
  <formats>
    <format>dir</format>
  </formats>
  <includeBaseDirectory>true</includeBaseDirectory>
  <baseDirectory>chat-server-standalone-${project.version}</baseDirectory>
  <fileSets>
    <fileSet>
      <directory>${project.build.directory}/${project.build.finalName}/dependencies/apache-tomcat/apache-tomcat-${org.apache.tomcat.version}/</directory>
      <includes>
        <include>**/*.sh</include>
      </includes>
      <outputDirectory>${file.separator}</outputDirectory>
      <fileMode>0755</fileMode>
      <filtered>false</filtered>
      <lineEnding>keep</lineEnding>
    </fileSet>
    <fileSet>
      <directory>${project.build.directory}/${project.build.finalName}/dependencies/apache-tomcat/apache-tomcat-${org.apache.tomcat.version}/</directory>
      <excludes>
        <exclude>**/*.sh</exclude>
        <exclude>**/webapps/**</exclude>
        <exclude>**/conf/logging.properties</exclude>
        <exclude>**/conf/tomcat-users.xml</exclude>
        <exclude>**/conf/context.xml</exclude>
        <exclude>**/conf/server.xml</exclude>
      </excludes>
      <outputDirectory>${file.separator}</outputDirectory>
      <filtered>false</filtered>
      <lineEnding>keep</lineEnding>
    </fileSet>
    <fileSet>
      <directory>src/main/resources</directory>
      <outputDirectory>${file.separator}</outputDirectory>
      <includes>
        <include>**/*.sh</include>
      </includes>
      <fileMode>0755</fileMode>
      <filtered>true</filtered>
      <lineEnding>keep</lineEnding>
    </fileSet>
    <fileSet>
      <directory>src/main/resources</directory>
      <outputDirectory>${file.separator}</outputDirectory>
      <excludes>
        <exclude>**/*.sh</exclude>
      </excludes>
      <fileMode>0755</fileMode>
      <filtered>true</filtered>
      <lineEnding>keep</lineEnding>
    </fileSet>
  </fileSets>
  <dependencySets>
    <dependencySet>
      <outputDirectory>webapps</outputDirectory>
      <includes>
        <include>org.exoplatform.addons.chat:chat-server-standalone:war</include>
      </includes>
      <outputFileNameMapping>chatServer.war</outputFileNameMapping>
      <unpack>false</unpack>
      <useProjectArtifact>false</useProjectArtifact>
    </dependencySet>
    <dependencySet>
      <outputDirectory>lib</outputDirectory>
      <useProjectArtifact>false</useProjectArtifact>
      <includes>
        <include>*:*:jar</include>
      </includes>
      <outputFileNameMapping>${artifact.artifactId}.jar</outputFileNameMapping>
    </dependencySet>
  </dependencySets>
</assembly>

