<!--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> 
        <includes>
          <include>**/*</include>
        </includes>   
    </fileSet>
    <fileSet>
        <directory>kits/wildfly/docs</directory>
        <outputDirectory>docs</outputDirectory>     
        <filtered>true</filtered> 
        <includes>
          <include>**/*</include>
        </includes>   
    </fileSet>  
  </fileSets>
  
  <dependencySets>
    <dependencySet>
      <outputDirectory>${wildfly-module-root}/org/jboss/teiid/translator/excel/main</outputDirectory>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <includes>
        <include>org.jboss.teiid.connectors:translator-excel</include>
      </includes>
      <useProjectArtifact>true</useProjectArtifact>
    </dependencySet>
    
     <dependencySet>
         <outputDirectory>${wildfly-module-root}/org/apache/poi/main</outputDirectory>
         <includes>
             <include>org.apache.poi:poi</include>
             <include>org.apache.poi:poi-ooxml</include>
             <include>org.apache.poi:poi-ooxml-schemas</include>
         </includes>
         <useProjectArtifact>false</useProjectArtifact>
         <unpack>false</unpack>
         <useTransitiveDependencies>true</useTransitiveDependencies>
     </dependencySet>
     
     <dependencySet>
         <outputDirectory>${wildfly-module-root}/dom4j/main</outputDirectory>
         <includes>
             <include>dom4j:dom4j</include>
         </includes>
         <useProjectArtifact>false</useProjectArtifact>
         <unpack>false</unpack>
         <useTransitiveDependencies>true</useTransitiveDependencies>
     </dependencySet>    
     
     <dependencySet>
         <outputDirectory>${wildfly-module-root}/org/apache/xmlbeans/main</outputDirectory>
         <includes>
             <include>org.apache.xmlbeans:xmlbeans</include>
         </includes>
         <useProjectArtifact>false</useProjectArtifact>
         <unpack>false</unpack>
         <useTransitiveDependencies>true</useTransitiveDependencies>
     </dependencySet>       
    
  </dependencySets>  
  
</assembly>
