<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>switchyard-as7-openshift-express</id>
  <includeBaseDirectory>false</includeBaseDirectory>
  <formats>
    <format>zip</format>
  </formats>
  <!-- We are not ready for domain config yet -->
  <fileSets>
    <fileSet>
      <directory>${staging.jboss.dir}</directory>
      <includes>
        <include>*.jar</include>
        <include>*.txt</include>
      </includes>
      <outputDirectory>${distro.root.dir}</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${staging.jboss.dir}/bin</directory>
      <excludes>
        <exclude>domain.*</exclude>
        <exclude>standalone.conf</exclude>
        <exclude>standalone.conf.bat</exclude>
        <exclude>ws*.*</exclude>
      </excludes>
      <includes>
        <include>*.sh</include>
        <include>*.bat</include>
      </includes>
      <fileMode>755</fileMode>
      <lineEnding>keep</lineEnding>
      <outputDirectory>${distro.root.dir}bin</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${staging.jboss.dir}/bin</directory>
      <excludes>
        <exclude>domain.*</exclude>
        <exclude>*.sh</exclude>
        <exclude>*.bat</exclude>
        <exclude>standalone.conf</exclude>
        <exclude>standalone.conf.bat</exclude>
        <exclude>ws*.*</exclude>
      </excludes>
      <fileMode>644</fileMode>
      <lineEnding>keep</lineEnding>
      <outputDirectory>${distro.root.dir}bin</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${staging.jboss.dir}/bundles</directory>
      <outputDirectory>${distro.root.dir}bundles</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${staging.jboss.dir}/docs</directory>
      <outputDirectory>${distro.root.dir}docs</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${staging.jboss.dir}/modules</directory>
      <outputDirectory>${distro.root.dir}modules</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${staging.jboss.dir}/welcome-content</directory>
      <outputDirectory>${distro.root.dir}welcome-content</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${staging.jboss.dir}/standalone</directory>
      <outputDirectory>${distro.root.dir}standalone</outputDirectory>
      <excludes>
         <exclude>**/standalone*.xml</exclude>
      </excludes>
    </fileSet>
    <fileSet>
      <directory>src/main/resources</directory>
      <outputDirectory>${distro.root.dir}standalone/configuration</outputDirectory>
      <includes>
         <include>standalone.xml</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>${staging.jboss.dir}/standalone</directory>
      <outputDirectory>${distro.root.dir}standalone</outputDirectory>
      <excludes>
         <exclude>**/standalone*.xml</exclude>
      </excludes>
    </fileSet>
    <fileSet>
      <directory>${staging.jboss.dir}/standalone</directory>
      <outputDirectory>${distro.root.dir}standalone</outputDirectory>
      <excludes>
         <exclude>**/standalone*.xml</exclude>
      </excludes>
    </fileSet>
    <fileSet>
      <directory>src/main/resources</directory>
      <outputDirectory>${distro.root.dir}bin</outputDirectory>
      <includes>
         <include>standalone.conf</include>
         <include>standalone.conf.bat</include>
      </includes>
      <fileMode>755</fileMode>
    </fileSet>
  </fileSets>
</assembly>
