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

    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="https://maven.apache.org/plugins/maven-assembly-plugin/assembly/2.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="https://maven.apache.org/plugins/maven-assembly-plugin/assembly/2.0.0 https://maven.apache.org/xsd/assembly-2.0.0.xsd">
    <id>tomcat-zip</id>

    <formats>
        <format>zip</format>
    </formats>

    <includeBaseDirectory>false</includeBaseDirectory>


    <fileSets>
        <fileSet>
            <directory>${project.build.directory}/dependency/apache-tomcat-${org.apache.tomcat.version}</directory>
            <outputDirectory></outputDirectory>
            <excludes>
                <exclude>**/webapps/**</exclude>
                <exclude>**/bin/setenv.*</exclude>
                <exclude>**/bin/*.sh</exclude>
                <exclude>**/bin/catalina-tasks.xml</exclude>
                <exclude>**/bin/*.tar.gz</exclude>
                <exclude>**/conf/tomcat-users.xml</exclude>
                <exclude>**/conf/server.xml</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>${project.build.directory}/dependency/apache-tomcat-${org.apache.tomcat.version}</directory>
            <outputDirectory></outputDirectory>
            <includes>
                <include>**/bin/*.sh</include>
            </includes>
            <fileMode>755</fileMode>
        </fileSet>


        <fileSet>
            <directory>${project.basedir}/src/assembly</directory>
            <outputDirectory></outputDirectory>
            <includes>
                <include>LICENSE-tomcat.txt</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>${project.basedir}/src/assembly/bin</directory>
            <outputDirectory>bin</outputDirectory>
            <includes>
                <include>setenv.sh</include>
            </includes>
            <fileMode>755</fileMode>
        </fileSet>
        <fileSet>
            <directory>${project.basedir}/src/assembly/conf</directory>
            <outputDirectory>conf</outputDirectory>
            <includes>
                <include>logback-access.xml</include>
                <include>logback.xml</include>
                <include>logback-json-appenders.xml</include>
                <include>logback-plaintext-appenders.xml</include>
                <include>server.xml</include>
                <include>context.xml</include>
                <include>logging.properties</include>
            </includes>
        </fileSet>
    </fileSets>
</assembly>
