<!--
  #%L
  Fuse EAP :: Distro
  %%
  Copyright (C) 2015 RedHat
  %%
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  #L%
  -->
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">

    <id>distro</id>
    <formats>
        <format>zip</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>

    <dependencySets>
        <dependencySet>
            <outputDirectory>/</outputDirectory>
            <includes>
                <include>org.switchyard:switchyard-as7-standalone-dist:zip</include>
            </includes>
            <unpack>true</unpack>
            <unpackOptions>
                <excludes>
                    <exclude>modules/layers.conf</exclude>
                    <exclude>standalone/**</exclude>
                    <exclude>domain/**</exclude>
                    <exclude>*.txt</exclude>
                </excludes>
            </unpackOptions>
            <useTransitiveDependencies>false</useTransitiveDependencies>
        </dependencySet>
        <dependencySet>
            <outputDirectory>/modules/system/layers/fuse/org/wildfly/extras/config/plugin/switchyard/main</outputDirectory>
            <includes>
                <include>com.redhat.fuse.eap:fuse-eap-config:jar</include>
            </includes>
        </dependencySet>
    </dependencySets>
    <fileSets>
        <fileSet>
            <directory>target/dependency/wildfly-camel-patch</directory>
            <outputDirectory>/</outputDirectory>
            <excludes>
                <exclude>modules/layers.conf</exclude>
                <exclude>quickstarts/camel/itests/**</exclude>
                <exclude>standalone/configuration/**</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>target/dependency/riftsaw</directory>
            <outputDirectory>/sql/riftsaw</outputDirectory>
            <includes>
                <include>*.sql</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>target/dependency/switchyard-tools-dist/switchyard-tools-2.0/configuration</directory>
            <outputDirectory>/standalone/configuration</outputDirectory>
            <includes>
                <include>bpel-console.properties</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>target/dependency/switchyard-tools-dist/switchyard-tools-${version.switchyard.distro}</directory>
            <outputDirectory>/standalone/deployments</outputDirectory>
            <includes>
                <include>switchyard-bpel-console-server.war</include>
                <include>switchyard-bpel-console.war</include>
                <include>switchyard-bpel-console.war/**</include>
                <include>switchyard-bpel-console.war.dodeploy</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>etc/jboss-eap</directory>
            <outputDirectory>/</outputDirectory>
            <filtered>true</filtered>
        </fileSet>
    </fileSets>
    
</assembly>
