<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
  <id>OpenShiftCartridge</id>
  <includeBaseDirectory>false</includeBaseDirectory>
  <formats>
    <format>tar.gz</format>
  </formats>
  <fileSets>
    <fileSet>
      <directory>${cartridge.dir}/modules</directory>
      <outputDirectory>modules</outputDirectory>
      <!--
        Comment when using JBossWS stack 
        Uncomment when using JDK's impl
        -->
      <!-- Start
      <excludes>
         <exclude>org/switchyard/component/soap/ws-impl/main/module.xml</exclude>
      </excludes>
       End -->
      <fileMode>755</fileMode>
    </fileSet>
    <!--
    Comment when using JBossWS stack 
    Uncomment when using JDK's impl
    -->
    <!-- Start
    <fileSet>
      <directory>src/main/resources/ws-impl</directory>
      <outputDirectory>modules/org/switchyard/component/soap/ws-impl/main</outputDirectory>
      <includes>
         <include>module.xml</include>
      </includes>
      <fileMode>755</fileMode>
    </fileSet>
    <fileSet>
      <directory>src/main/resources/soap</directory>
      <outputDirectory>modules/javax/xml/soap/api/main</outputDirectory>
      <includes>
         <include>module.xml</include>
      </includes>
      <fileMode>755</fileMode>
    </fileSet>
    <fileSet>
      <directory>src/main/resources/ws</directory>
      <outputDirectory>modules/javax/xml/ws/api/main</outputDirectory>
      <includes>
         <include>module.xml</include>
      </includes>
      <fileMode>755</fileMode>
    </fileSet>
    <fileSet>
      <directory>src/main/resources/hibernate-validator</directory>
      <outputDirectory>modules/org/hibernate/validator/main</outputDirectory>
      <includes>
         <include>module.xml</include>
      </includes>
      <fileMode>755</fileMode>
    </fileSet>
     End -->
  </fileSets>
</assembly>
