<!--This script builds a zip for Teiid Server Installation -->
<assembly>

    <id>wildfly-dist</id>

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

    <includeBaseDirectory>false</includeBaseDirectory>
    <baseDirectory>modules</baseDirectory>

    <fileSets>
        <fileSet>
            <directory>kits/wildfly/modules</directory>
            <outputDirectory>${wildfly-module-root}</outputDirectory>
            <filtered>true</filtered>
            <excludes>
                <exclude>**/*.jar</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>kits/wildfly/modules</directory>
            <outputDirectory>${wildfly-module-root}</outputDirectory>
            <filtered>false</filtered>
            <includes>
                <include>**/*.jar</include>
            </includes>
        </fileSet>        
    </fileSets>
    <dependencySets>
        <dependencySet>
            <outputDirectory>${wildfly-module-root}/org/apache/cxf/impl/frontend-jaxrs/main</outputDirectory>
            <useTransitiveDependencies>false</useTransitiveDependencies>
            <includes>
                <include>org.apache.cxf:cxf-rt-frontend-jaxrs</include>
                <include>org.apache.cxf:cxf-rt-rs-client</include>
                <include>org.apache.cxf:cxf-rt-transports-http-hc</include>
                <include>org.apache.cxf:cxf-rt-rs-security-oauth</include>
                <include>org.apache.cxf:cxf-rt-rs-security-oauth2</include>
                <include>org.apache.cxf:cxf-rt-rs-security-oauth2-saml</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>${wildfly-module-root}/org/springframework/spring/main</outputDirectory>
            <useTransitiveDependencies>false</useTransitiveDependencies>
            <includes>
                <include>org.springframework:spring-beans</include>
                <include>org.springframework:spring-context</include>
                <include>org.springframework:spring-core</include>
                <include>org.springframework:spring-asm</include>
                <include>org.springframework:spring-expression</include>
                <include>org.springframework:spring-aop</include>
                <include>org.springframework:spring-tx</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>${wildfly-module-root}/net/oauth/core/main</outputDirectory>
            <useTransitiveDependencies>false</useTransitiveDependencies>
            <includes>
                <include>net.oauth.core:oauth</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>${wildfly-module-root}/org/jboss/teiid/resource-adapter/webservice/main</outputDirectory>
            <includes>
                <include>org.jboss.teiid.connectors:connector-ws</include>
            </includes>
            <useTransitiveDependencies>false</useTransitiveDependencies>
        </dependencySet>                 
    </dependencySets>
</assembly>
