<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:maven:assembly:1.1.0-SNAPSHOT">
    <id>src</id>
    <formats>
       <format>zip</format>
       <format>tar.gz</format>
    </formats>

    <includeBaseDirectory>false</includeBaseDirectory>

    <fileSets>
        <fileSet>
            <directory>..</directory>
            <outputDirectory>undertow-${project.version}-src</outputDirectory>
            <includes>
                <include>**/*.xml</include>
                <include>**/src/**</include>
                <include>**/*.txt</include>
                <include>**/*.sh</include>
                <include>**/*.bat</include>
                <include>**/*.md</include>
                <include>tools/**</include>
            </includes>
            <excludes>
                <!-- Ignore build output -->
                <exclude>**/target/**</exclude>

                <!-- Ignore git repo -->
                <exclude>**/.git</exclude>

                <!-- Ignore IDE configuration and other hidden files-->
                <exclude>**/.project</exclude>
                <exclude>**/.classpath</exclude>
                <exclude>**/.settings</exclude>
                <exclude>**/.metadata</exclude>
                <exclude>**/.iml</exclude>
                <exclude>**/.ipr</exclude>
                <exclude>**/.iws</exclude>
                <exclude>**/.idea</exclude>
                <exclude>.*</exclude>
                <exclude>nbactions.xml</exclude>
                <exclude>nb-configuration.xml</exclude>
                <exclude>catalog.xml</exclude>

            </excludes>
        </fileSet>
    </fileSets>
</assembly>
