<!--

    Copyright (c) 2012-2021 Red Hat, Inc.
    This program and the accompanying materials are made
    available under the terms of the Eclipse Public License 2.0
    which is available at https://www.eclipse.org/legal/epl-2.0/

    SPDX-License-Identifier: EPL-2.0

    Contributors:
      Red Hat, Inc. - initial API and implementation

-->
<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>tomcat-zip</id>
    <formats>
        <format>dir</format>
        <format>zip</format>
        <format>tar.gz</format>
    </formats>
    <dependencySets>
        <dependencySet>
            <useProjectArtifact>false</useProjectArtifact>
            <unpack>false</unpack>
            <outputDirectory>tomcat/webapps</outputDirectory>
            <outputFileNameMapping>ROOT.war</outputFileNameMapping>
            <includes>
                <include>org.eclipse.che:assembly-root-war</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <useProjectArtifact>false</useProjectArtifact>
            <unpack>false</unpack>
            <outputDirectory>tomcat/webapps</outputDirectory>
            <outputFileNameMapping>api.war</outputFileNameMapping>
            <includes>
                <include>org.eclipse.che:assembly-wsmaster-war</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <useProjectArtifact>false</useProjectArtifact>
            <unpack>false</unpack>
            <outputDirectory>tomcat/webapps</outputDirectory>
            <outputFileNameMapping>swagger.war</outputFileNameMapping>
            <includes>
                <include>org.eclipse.che:assembly-swagger-war</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <useProjectArtifact>false</useProjectArtifact>
            <unpack>false</unpack>
            <outputDirectory>lib</outputDirectory>
            <includes>
                <include>org.postgresql:postgresql</include>
            </includes>
        </dependencySet>
    </dependencySets>
    <fileSets>
        <fileSet>
            <directory>${project.build.directory}/dependency/assembly-che-tomcat</directory>
            <outputDirectory>tomcat/</outputDirectory>
            <excludes>
                <exclude>bin/*.bat</exclude>
            </excludes>
       </fileSet>
       <fileSet>
            <directory>${project.basedir}/src/assembly</directory>
            <outputDirectory></outputDirectory>
            <includes>
              <include>LICENSE</include>
              <include>README</include>
           </includes>
        </fileSet>
    </fileSets>
</assembly>
