<!--
  #%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.wildfly.camel:wildfly-camel-patch:tar.gz</include>
            </includes>
            <useProjectArtifact>false</useProjectArtifact>
            <useProjectAttachments>false</useProjectAttachments>
            <useTransitiveDependencies>false</useTransitiveDependencies>
            <useTransitiveFiltering>false</useTransitiveFiltering>
            <directoryMode>0644</directoryMode>
            <fileMode>0644</fileMode>
            <unpack>true</unpack>
            <unpackOptions>
                <excludes>
                    <exclude>META-INF/**</exclude>
                    <exclude>modules/layers.conf</exclude>
                </excludes>
            </unpackOptions>
        </dependencySet>
        
        <dependencySet>
            <outputDirectory>/</outputDirectory>
            <includes>
                <include>org.switchyard:switchyard-as7-standalone-dist:zip</include>
            </includes>
            <useProjectArtifact>false</useProjectArtifact>
            <useProjectAttachments>false</useProjectAttachments>
            <useTransitiveDependencies>false</useTransitiveDependencies>
            <useTransitiveFiltering>false</useTransitiveFiltering>
            <directoryMode>0644</directoryMode>
            <fileMode>0644</fileMode>
            <unpack>true</unpack>
            <unpackOptions>
                <excludes>
                    <exclude>META-INF/**</exclude>
                    <exclude>modules/layers.conf</exclude>
                    <exclude>standalone/**</exclude>
                    <exclude>domain/**</exclude>
                </excludes>
            </unpackOptions>
        </dependencySet>

        <dependencySet>
            <outputDirectory>/bin</outputDirectory>
            <includes>
                <include>com.redhat.fuse:fuse-eap-config:jar</include>
            </includes>
            <outputFileNameMapping>fuse-eap-config.${artifact.extension}</outputFileNameMapping>
            <useProjectArtifact>false</useProjectArtifact>
            <useProjectAttachments>false</useProjectAttachments>
            <useTransitiveDependencies>false</useTransitiveDependencies>
            <useTransitiveFiltering>false</useTransitiveFiltering>
            <directoryMode>0755</directoryMode>
            <fileMode>0755</fileMode>
        </dependencySet>
    </dependencySets>
        
</assembly>
