<?xml version="1.0" encoding="UTF-8"?>
<!--
    * Licensed to the Apache Software Foundation (ASF) under one
    * or more contributor license agreements.  See the NOTICE file
    * distributed with this work for additional information
    * regarding copyright ownership.  The ASF licenses this file
    * to you 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.
-->
<assembly>
    <!-- id typically identifies the "type" (src vs bin etc) of the assembly -->
    <id></id>
    <includeBaseDirectory>false</includeBaseDirectory>
    <formats>
        <format>dir</format>
        <format>tar.gz</format>
        <format>zip</format>
    </formats>

    <fileSets>
        <fileSet>
            <directory>src/main/release</directory>
            <outputDirectory>apache-cxf-${cxf.version}</outputDirectory>
            <includes>
                <include>licenses/*.*</include>
                <include>lib/*</include>
                <include>release_notes.txt</include>
                <include>README</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>target/maven-shared-archive-resources/META-INF</directory>
            <outputDirectory>apache-cxf-${cxf.version}</outputDirectory>
            <includes>
                <include>*</include>
            </includes>
            <excludes>
                <exclude>DEPENDENCIES</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>src/main/release/bin</directory>
            <outputDirectory>apache-cxf-${cxf.version}/bin</outputDirectory>
            <fileMode>755</fileMode>
        </fileSet>
        <fileSet>
            <directory>iona_src/main/release/bin</directory>
            <outputDirectory>apache-cxf-${cxf.version}/bin</outputDirectory>
            <fileMode>755</fileMode>
        </fileSet>
        <fileSet>
            <directory>iona_src/main/release</directory>
            <outputDirectory>apache-cxf-${cxf.version}/</outputDirectory>
            <excludes>
                <exclude>**/build</exclude>
                <exclude>**/build/**/*</exclude>
                <exclude>bin/**/*</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>src/main/release/etc</directory>
            <outputDirectory>apache-cxf-${cxf.version}/etc</outputDirectory>
            <includes>
                <include>logging.properties</include>
                <include>ejb_servants.properties</include>
                <include>web.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/release/docs</directory>
            <outputDirectory>apache-cxf-${cxf.version}/docs</outputDirectory>
            <includes>
                <include>**/*.pdf</include>
                <include>release_notes.txt</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/release/samples</directory>
            <outputDirectory>apache-cxf-${cxf.version}/samples</outputDirectory>
            <excludes>
                <exclude>**/build</exclude>
                <exclude>**/build/**/*</exclude>
                <exclude>integration/JBI/**/build.properties</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>target/javadoc</directory>
            <outputDirectory>apache-cxf-${cxf.version}/docs/api</outputDirectory>
            <includes>
                <include>**/*</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>target/additional-libs</directory>
            <outputDirectory>apache-cxf-${cxf.version}/modules/integration</outputDirectory>
            <includes>
                <include>**/*</include>
            </includes>
            <excludes>
                <exclude>cxf-bundle*.jar</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>manifest/target</directory>
            <outputDirectory>apache-cxf-${cxf.version}/lib</outputDirectory>
            <includes>
                <include>**/cxf-manifest.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>target</directory>
            <outputDirectory>apache-cxf-${cxf.version}/lib</outputDirectory>
            <includes>
                <include>it-soa-container.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>manifest/target</directory>
            <outputDirectory>apache-cxf-${cxf.version}/modules</outputDirectory>
            <includes>
                <include>**/cxf-manifest.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>target</directory>
            <outputDirectory>apache-cxf-${cxf.version}/etc</outputDirectory>
            <includes>
                <include>version.properties</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../integration/jca/src/main/rar/META-INF</directory>
            <outputDirectory>apache-cxf-${cxf.version}/etc</outputDirectory>
            <includes>
                <include>ra.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>target</directory>
            <outputDirectory>apache-cxf-${cxf.version}/samples/integration/JBI/service-engine/etc</outputDirectory>
            <includes>
                <include>jbi.xml</include>
            </includes>
        </fileSet>

    </fileSets>
    <dependencySets>
        <dependencySet>
            <outputDirectory>apache-cxf-${cxf.version}/lib</outputDirectory>
            <unpack>false</unpack>
            <excludes>
                <exclude>org.apache.cxf:*</exclude>
            </excludes>
            <scope>runtime</scope>
        </dependencySet>
        <dependencySet>
            <outputDirectory>apache-cxf-${cxf.version}/modules</outputDirectory>
            <unpack>false</unpack>
            <includes>
                <include>org.apache.cxf:*</include>
            </includes>
            <excludes>
                <exclude>org.apache.cxf:cxf-bundle</exclude>
            </excludes>
            <scope>runtime</scope>
        </dependencySet>
        <dependencySet>
            <outputDirectory>apache-cxf-${cxf.version}/lib</outputDirectory>
            <unpack>false</unpack>
            <includes>
                <include>org.apache.cxf:cxf-bundle</include>
            </includes>
            <scope>runtime</scope>
            <outputFileNameMapping>cxf-${version}.jar</outputFileNameMapping>
        </dependencySet>

    </dependencySets>

</assembly>
