<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>src</id>
    <formats>
        <format>zip</format>
    </formats>

    <includeBaseDirectory>true</includeBaseDirectory>
    <baseDirectory>pmd-src-${project.version}</baseDirectory>

    <fileSets>
        <fileSet>
            <useDefaultExcludes>true</useDefaultExcludes>
            <directory>${project.basedir}/..</directory>
            <outputDirectory>/</outputDirectory>
            <excludes>
                <exclude>**/target/**</exclude>
                <exclude>**/bin/**</exclude>
                <exclude>**/.settings</exclude>
                <exclude>**/.project</exclude>
                <exclude>**/.classpath</exclude>
                <exclude>**/.checkstyle</exclude>
                <exclude>**/.pmd</exclude>
                <exclude>**/.ruleset</exclude>
                <exclude>**/.git</exclude>
            </excludes>
            <directoryMode>0755</directoryMode>
            <fileMode>0644</fileMode>
        </fileSet>
    </fileSets>
</assembly>
