<?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>java-bin-with-tests</id>
  <includeBaseDirectory>false</includeBaseDirectory>
  <formats>
    <format>tar.gz</format>
    <format>zip</format>
  </formats>

  <fileSets>
   <!-- Include the currently hardwired Apache Legal bits -->
    <fileSet>
      <directory>../resources</directory>
      <outputDirectory>qpid-${qpid.version}</outputDirectory>
      <includes>
          <include>DISCLAIMER</include>
          <include>LICENSE</include>
          <include>NOTICE</include>
          <include>README</include>
      </includes>
      <fileMode>0444</fileMode>
    </fileSet>

  <!-- Include any release information -->
    <fileSet>
      <directory>src/main/release</directory>
      <outputDirectory>qpid-${qpid.version}</outputDirectory>
    </fileSet>

    <!-- Include any release information -->
    <fileSet>
      <directory>../release-docs</directory>
      <outputDirectory>qpid-${qpid.version}</outputDirectory>
    </fileSet>

    <!-- Include the classpath jar qpid-incubating.jar -->
    <fileSet>
      <directory>target</directory>
      <outputDirectory>qpid-${qpid.version}/lib</outputDirectory>
      <includes>
          <include>qpid-incubating.jar</include>
      </includes>
    </fileSet>

    <!-- Include etc -->
    <fileSet>
      <directory>../common/etc</directory>
      <outputDirectory>qpid-${qpid.version}/etc</outputDirectory>
      <fileMode>0640</fileMode>
    </fileSet>
    <fileSet>
      <directory>../broker/etc</directory>
      <outputDirectory>qpid-${qpid.version}/etc</outputDirectory>
      <fileMode>0640</fileMode>
    </fileSet>

    <!-- Include bin scripts-->
    <fileSet>
      <directory>../broker/bin</directory>
      <outputDirectory>qpid-${qpid.version}/bin</outputDirectory>
      <fileMode>0750</fileMode>
    </fileSet>
    <fileSet>
      <directory>../common/bin</directory>
      <outputDirectory>qpid-${qpid.version}/bin</outputDirectory>
      <fileMode>0750</fileMode>
    </fileSet>
  </fileSets>

  <dependencySets>
    <dependencySet>
      <outputDirectory>qpid-${qpid.version}/lib</outputDirectory>
      <unpack>false</unpack>
      <excludes>
        <!-- Exclude the jar output of this build process -->
        <exclude>org.apache.qpid:qpid-distribution</exclude>
        <!-- Exclude the Console dependancies -->
        <exclude>org.apache.qpid.management:org.apache.qpid.management.ui</exclude>
        <exclude>org.eclipse.core:org.eclipse.core.commands</exclude>
        <exclude>org.eclipse.core:org.eclipse.core.contenttype</exclude>
        <exclude>org.eclipse.core:org.eclipse.core.expressions</exclude>
        <exclude>org.eclipse.core:org.eclipse.core.jobs</exclude>
        <exclude>org.eclipse.core:org.eclipse.core.runtime</exclude>
        <exclude>org.eclipse.core:org.eclipse.core.runtime.compatibility.auth</exclude>
        <exclude>org.eclipse.core:org.eclipse.core.runtime.compatibility.registry</exclude>
        <exclude>org.eclipse.equinox:org.eclipse.equinox.common</exclude>
        <exclude>org.eclipse.equinox:org.eclipse.equinox.preferences</exclude>
        <exclude>org.eclipse.equinox:org.eclipse.equinox.registry</exclude>
        <exclude>org.eclipse.help:org.eclipse.help</exclude>
        <exclude>org.eclipse.jface:org.eclipse.jface</exclude>
        <exclude>org.eclipse.osgi:org.eclipse.osgi</exclude>
        <exclude>org.eclipse.swt:org.eclipse.swt</exclude>
        <exclude>org.eclipse.swt:org.eclipse.swt.win32.win32.x86</exclude>
        <exclude>org.eclipse.ui:org.eclipse.ui</exclude>
        <exclude>org.eclipse.ui:org.eclipse.ui.forms</exclude>
        <exclude>org.eclipse.ui:org.eclipse.ui.workbench</exclude>
      </excludes>
      <scope>runtime</scope>
    </dependencySet>
  </dependencySets>
</assembly>
