<?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>bin</id>
  <formats>
    <format>tar.gz</format>
  </formats>
  <fileSets>

    <!-- Copy over everything that needs to get unix line endings -->
    <fileSet>
      <directory>src/release</directory>
      <outputDirectory>/</outputDirectory>
      <excludes>
        <exclude>bin/**</exclude>
        <exclude>conf/*.ts</exclude>
        <exclude>conf/*.ks</exclude>
        <exclude>conf/*.cert</exclude>
      </excludes>
      <lineEnding>unix</lineEnding>
    </fileSet>
    <fileSet>
      <directory>src/release</directory>
      <outputDirectory>/</outputDirectory>
      <includes>
        <include>bin/macosx/wrapper.conf</include>
        <include>bin/linux-*/wrapper.conf</include>
      </includes>
      <lineEnding>unix</lineEnding>
    </fileSet>

    <!-- Copy over the files that should not get the line endings converted but need to be chmod to 755 -->
    <fileSet>
      <directory>src/release</directory>
      <outputDirectory></outputDirectory>
      <includes>
        <include>bin/linux-*/wrapper</include>
        <include>bin/linux-*/libwrapper.so</include>
        <include>bin/macosx/wrapper</include>
        <include>bin/macosx/libwrapper.jnilib</include>
      </includes>
      <fileMode>0755</fileMode>
    </fileSet>

    <!-- Copy over the files that need unix line endings and also chmod to 755 -->
    <fileSet>
      <directory>src/release</directory>
      <outputDirectory></outputDirectory>
      <includes>
        <include>bin/activemq</include>
        <include>bin/activemq-admin</include>
        <include>bin/macosx/activemq</include>
        <include>bin/linux-*/activemq</include>
      </includes>
      <fileMode>0755</fileMode>
      <lineEnding>unix</lineEnding>
    </fileSet>

  </fileSets>
  
  <componentDescriptors>
    <componentDescriptor>src/main/descriptors/common-bin.xml</componentDescriptor>
  </componentDescriptors>
    
</assembly>
