<assembly>
  
  <id>server</id>
  
  <formats>
    <format>zip</format>
  </formats>
  
  <includeBaseDirectory>true</includeBaseDirectory>
  <baseDirectory>${dir.server}</baseDirectory>

  <fileSets>
    <fileSet>
        <directory>${project.build.directory}/${dir.jboss-orig}</directory>
        <outputDirectory>/</outputDirectory>      
        <includes>
          <include>**/*.sh</include>
        </includes>   
        <fileMode>755</fileMode>  
    </fileSet> 
    <fileSet>
        <directory>${project.build.directory}/${dir.jboss-orig}</directory>
        <outputDirectory>/</outputDirectory>      
        <excludes>
          <exclude>**/*.sh</exclude>
        </excludes>      
    </fileSet>
    <fileSet>
        <directory>${project.build.directory}/teiid-${project.version}-jboss-dist</directory>
        <outputDirectory>/</outputDirectory>
    </fileSet>    
  </fileSets>
  
</assembly>
