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

  <fileSets>
    <fileSet>
      <directory>src/main/release</directory>
      <outputDirectory>qpid-${qpid.version}</outputDirectory>
      <includes>
	<include>DISCLAIMER</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>..</directory>
      <outputDirectory>qpid-${qpid.version}</outputDirectory>
      <includes>
	<include>*.txt</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>src/main/release/etc</directory>
      <outputDirectory>qpid-${qpid.version}/etc</outputDirectory>
      <includes>
	<include>logging.properties</include>
	<include>log4j.properties</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>src/main/release/docs</directory>
      <outputDirectory>qpid-${qpid.version}/docs</outputDirectory>
      <includes>
	<include>RELEASE_NOTES.txt</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>target</directory>
      <outputDirectory>qpid-${qpid.version}/lib</outputDirectory>
      <includes>
	<include>qpid-incubator.jar</include>
      </includes>
    </fileSet>
  </fileSets>
  <files>
    <!-- due to a bug in the assembly plugin (MASSEMBLY-133) you have
         to use decimal numbers to specify fileMode -->
    <file>
      <source>../common/etc/qpid-run.conf</source>
      <outputDirectory>qpid-${qpid.version}/etc</outputDirectory>
      <destName>qpid-run.conf</destName>
      <fileMode>420</fileMode>
    </file>
    <file>
      <source>../broker/etc/config.xml</source>
      <outputDirectory>qpid-${qpid.version}/etc</outputDirectory>
      <destName>config.xml</destName>
      <fileMode>420</fileMode>
    </file>
    <file>
      <source>../broker/etc/log4j.xml</source>
      <outputDirectory>qpid-${qpid.version}/etc</outputDirectory>
      <destName>log4j.xml</destName>
      <fileMode>420</fileMode>
    </file>
    <file>
      <source>../broker/etc/passwd</source>
      <outputDirectory>qpid-${qpid.version}/etc</outputDirectory>
      <destName>passwd</destName>
      <fileMode>420</fileMode>
    </file>
    <file>
      <source>../broker/etc/qpid-server.conf</source>
      <outputDirectory>qpid-${qpid.version}/etc</outputDirectory>
      <destName>qpid-server.conf</destName>
      <fileMode>420</fileMode>
    </file>
    <file>
      <source>../broker/etc/virtualhosts.xml</source>
      <outputDirectory>qpid-${qpid.version}/etc</outputDirectory>
      <destName>virtualhosts.xml</destName>
      <fileMode>420</fileMode>
    </file>
    <file>
      <source>../common/bin/qpid-run</source>
      <outputDirectory>qpid-${qpid.version}/bin</outputDirectory>
      <destName>qpid-run</destName>
      <fileMode>493</fileMode>
    </file>
    <file>
      <source>../broker/bin/qpid-server</source>
      <outputDirectory>qpid-${qpid.version}/bin</outputDirectory>
      <destName>qpid-server</destName>
      <fileMode>493</fileMode>
    </file>
    <file>
      <source>../broker/bin/qpid-server.bat</source>
      <outputDirectory>qpid-${qpid.version}/bin</outputDirectory>
      <destName>qpid-server.bat</destName>
      <fileMode>493</fileMode>
    </file>
    <file>
      <source>../broker/bin/run.bat</source>
      <outputDirectory>qpid-${qpid.version}/bin</outputDirectory>
      <destName>run.bat</destName>
      <fileMode>493</fileMode>
    </file>
    <file>
      <source>../broker/bin/run.sh</source>
      <outputDirectory>qpid-${qpid.version}/bin</outputDirectory>
      <destName>run.sh</destName>
      <fileMode>493</fileMode>
    </file>
    <file>
      <source>../broker/bin/runAll</source>
      <outputDirectory>qpid-${qpid.version}/bin</outputDirectory>
      <destName>runAll</destName>
      <fileMode>493</fileMode>
    </file>
  </files>
  <dependencySets>
    <dependencySet>
      <outputDirectory>qpid-${qpid.version}/lib</outputDirectory>
      <unpack>false</unpack>
      <excludes>
	<exclude>org.apache.qpid:qpid-distribution</exclude>
      </excludes>
      <scope>runtime</scope>
    </dependencySet>
  </dependencySets>
</assembly>
