<!--
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.    
-->

<!-- NOTE: This is no longer used as of 2.3.1 10/2010
     Instead, source distributions are built using the 
     standard source-release assembly mechanism of 
     Apache common super pom -->

<assembly>
  <id>src</id>
  <formats>
    <format>tar.gz</format>
    <!--format>tar.bz2</format-->  <!-- to speed up builds -->
    <format>zip</format>
  </formats>
  
  <includeBaseDirectory>true</includeBaseDirectory>

  <!-- project copying for this project, paying attention to
       fileMode settings - mostly readonly for owner/group/other, 
       but executable for executables -->
         
  <fileSets>
    <!-- Leave out .sh/.bat/.cmd files, include them in the next step as executable -->
    <fileSet>
      <directory>.</directory>
      <outputDirectory/>
      <includes>
        <include>src/**</include>
        <include>pom.xml</include>
      </includes>
      <excludes>
        <exclude>src/**/*.sh</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    <!-- Copy .sh files as executable -->
    <fileSet>
      <fileMode>755</fileMode>
      <directory>.</directory>
      <outputDirectory/>
      <includes>
        <include>src/**/*.sh</include>
      </includes>
    </fileSet>
    
    <!-- ===================================== -->
    <!-- copy top level files to the top level -->    
    <!-- ===================================== -->
    <fileSet>
      <directory>src/main/readme</directory>
      <outputDirectory/>
      <fileMode>644</fileMode>
    </fileSet>
    
    <!-- Copy .sh files as executable -->
    <fileSet>
      <fileMode>755</fileMode>
      <directory>src/main/readme_src</directory>
      <includes>
        <include>*.sh</include>
      </includes>
      <outputDirectory/>
    </fileSet>
    <!-- Copy everything else as non-executable -->
    <fileSet>
      <directory>src/main/readme_src</directory>
      <excludes>
        <exclude>*.sh</exclude>
      </excludes>
      <outputDirectory/>
      <fileMode>644</fileMode>
    </fileSet>

    <!-- for every other source, use relative paths to locate
         the project's root, and include the whole thing except for 
         target/ 
         .*  (.settings/, .project, .classpath)
         
         There must be one entry here for each entry in 
         the <modules> section (recursively)
         
         Parent poms in the build/ section of svn are not included.
         Aggregator poms used in this build are included. 
    -->    
    
    <fileSet>
      <directory>.</directory>
      <outputDirectory/>
      <includes>
        <include>aggregate*/**</include>
        <include>jVinci/**</include>
        <include>PearPackagingMavenPlugin/**</include>
        <include>uima-docbook-*/**</include>
        <include>uimaj-adapter-*/**</include>
        <include>uimaj-bootstrap/**</include>
        <include>uimaj-component-test-util/**</include>
        <include>uimaj-core/**</include>
        <include>uimaj-cpe/**</include>
        <include>uimaj-document-annotation/**</include>
        <include>uimaj-eclipse-*/**</include>
        <include>uimaj-ep-*/**</include>
        <include>uimaj-examples/**</include>
        <include>uimaj-parent</include>
        <include>uimaj-test-util</include>
        <include>uimaj-tools</include>
      </includes>
    </fileSet>
    
    <!-- aggregator poms -->
    <!-- 
    <fileSet>
      <directory>../aggregate-uimaj</directory>
      <outputDirectory>/aggregate-uimaj</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    <fileSet>
      <directory>../aggregate-uimaj-eclipse-plugins</directory>
      <outputDirectory>/aggregate-uimaj</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    <fileSet>
      <directory>../aggregate-uimaj-docbooks</directory>
      <outputDirectory>/aggregate-uimaj</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    -->
    <!-- from aggregate-uimaj-docbooks -->
    <!-- 
    <fileSet>
      <directory>../uima-docbook-overview-and-setup</directory>
      <outputDirectory>/uima-docbook-overview-and-setup</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    <fileSet>
      <directory>../uima-docbook-references</directory>
      <outputDirectory>/uima-docbook-references</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    <fileSet>
      <directory>../uima-docbook-tools</directory>
      <outputDirectory>/uima-docbook-tools</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    <fileSet>
      <directory>../uima-docbook-tutorials-and-users-guides</directory>
      <outputDirectory>/uima-docbook-tutorials-and-users-guides</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    -->
    <!-- from aggregate-uimaj-eclipse-plugins -->
    <!-- 
    <fileSet>
      <directory>../uimaj-ep-cas-editor</directory>
      <outputDirectory>/uimaj-ep-cas-editor</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>META-INF</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>      
    <fileSet>
      <directory>../uimaj-ep-configurator</directory>
      <outputDirectory>/uimaj-ep-configurator</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>META-INF</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>      
    <fileSet>
      <directory>../uimaj-ep-debug</directory>
      <outputDirectory>/uimaj-ep-debug</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>META-INF</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>       
    <fileSet>
      <directory>../uimaj-ep-jcasgen</directory>
      <outputDirectory>/uimaj-ep-jcasgen</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>META-INF</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet> 
    <fileSet>
      <directory>../uimaj-ep-pear-packager</directory>
      <outputDirectory>/uimaj-ep-pear-packager</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>META-INF</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>     
    <fileSet>
      <directory>../uimaj-ep-runtime</directory>
      <outputDirectory>/uimaj-ep-runtime</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>META-INF</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>      
    -->
    <!-- from aggregate-uimaj -->
    <!-- 
    <fileSet>
      <directory>../jVinci</directory>
      <outputDirectory>/jVinci</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    <fileSet>
      <directory>../uimaj-adapter-soap</directory>
      <outputDirectory>/uimaj-adapter-soap</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    <fileSet>
      <directory>../uimaj-adapter-vinci</directory>
      <outputDirectory>/uimaj-adapter-vinci</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>  
    <fileSet>
      <directory>../uimaj-bootstrap</directory>
      <outputDirectory>/uimaj-bootstrap</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>          
    <fileSet>
      <directory>../uimaj-component-test-util</directory>
      <outputDirectory>/uimaj-component-test-util</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>  
    <fileSet>
      <directory>../uimaj-core</directory>
      <outputDirectory>/uimaj-core</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>  
    <fileSet>
      <directory>../uimaj-cpe</directory>
      <outputDirectory>/uimaj-cpe</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>      
    <fileSet>
      <directory>../uimaj-document-annotation</directory>
      <outputDirectory>/uimaj-document-annotation</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>   
    <fileSet>
      <directory>../uimaj-examples</directory>
      <outputDirectory>/uimaj-examples</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>      
    <fileSet>
      <directory>../uimaj-test-util</directory>
      <outputDirectory>/uimaj-test-util</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>     
    <fileSet>
      <directory>../uimaj-tools</directory>
      <outputDirectory>/uimaj-tools</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet>
    <fileSet>
      <directory>../PearPackagingMavenPlugin</directory>
      <outputDirectory>/PearPackagingMavenPlugin</outputDirectory>
      <excludes>
        <exclude>target/**</exclude>
        <exclude>.*/**</exclude>
      </excludes>
      <fileMode>644</fileMode>
    </fileSet> 
    -->         
          
  </fileSets>
  
</assembly>