<?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 xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">

  <id>all</id>
  <formats>
    <format>zip</format>
  </formats>
  <dependencySets>
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>lib</outputDirectory>
      <scope>runtime</scope>
      <excludes>
        <exclude>junit:junit</exclude>
        <exclude>org.testng:testng</exclude>
      </excludes>
    </dependencySet>
  </dependencySets>
  <fileSets>
    <fileSet>
        <directory>src/main/resources</directory>
        <outputDirectory></outputDirectory>
      <includes>
        <include>README*</include>
        <include>LICENSE*</include>
        <include>NOTICE*</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../core/src/main/resources</directory>
      <outputDirectory></outputDirectory>
      <includes>
        <include>FREEMARKER-LICENSE.txt</include>
        <include>OGNL-LICENSE.txt</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../plugins/plexus/src/main/resources</directory>
      <outputDirectory></outputDirectory>
      <includes>
        <include>CLASSWORLDS-LICENSE.txt</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../plugins/rest/src/main/resources</directory>
      <outputDirectory></outputDirectory>
      <includes>
        <include>XSTREAM-LICENSE.txt</include>
        <include>XPP3-LICENSE.txt</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../plugins/sitemesh/src/main/resources</directory>
      <outputDirectory></outputDirectory>
      <includes>
        <include>SITEMESH-LICENSE.txt</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../plugins/oval/src/main/resources</directory>
      <outputDirectory></outputDirectory>
      <includes>
        <include>OVAL-LICENSE.txt</include>
        <include>XSTREAM-LICENSE.txt</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>target/apps</directory>
      <outputDirectory>apps</outputDirectory>
      <includes>
        <include>*.war</include>
      </includes>
    </fileSet>

      <!-- Include the Struts 2 core Javadoc in the assembly -->
      <fileSet>
        <directory>../core/target/site</directory>
        <outputDirectory>docs/struts2-core</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../core/target/apidocs</directory>
        <outputDirectory>docs/struts2-core-apidocs</outputDirectory>
      </fileSet>

      <!-- Include the Confluence docs in the assembly -->
      <fileSet>
        <directory>target/docs</directory>
        <outputDirectory>docs/docs</outputDirectory>
      </fileSet>

      <!-- Plugins -->
      <!-- 
      <fileSet>
        <directory>../plugins/$plugin/target/site</directory>
        <outputDirectory>docs/struts2-plugins/struts2-$plugin-plugin</outputDirectory>
      </fileSet>
      -->
      <fileSet>
        <directory>../plugins/bean-validation/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-bean-validation/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/cdi/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-cdi-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/config-browser/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-config-browser-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/convention/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-convention-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/dwr/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-dwr-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/embeddedjsp/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-embeddedjsp-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/gxp/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-gxp-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/jasperreports/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-jasperreports-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/javatemplates/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-javatemplates-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/jfreechart/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-jfreechart-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/json/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-json-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/junit/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-junit-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/osgi/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-osgi-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/oval/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-oval-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/pell-multipart/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-pell-multipart-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/plexus/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-plexus-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/portlet/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-portlet-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/portlet-tiles/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-portlet-tiles-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/rest/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-rest-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/sitegraph/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-sitegraph-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/sitemesh/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-sitemesh-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/spring/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-spring-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/testng/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-testng-plugin/apidocs</outputDirectory>
      </fileSet>
      <fileSet>
        <directory>../plugins/tiles/target/apidocs</directory>
        <outputDirectory>docs/struts2-plugins/struts2-tiles-plugin/apidocs</outputDirectory>
      </fileSet>

    <!-- bundles -->
    <fileSet>
       <directory>../bundles/admin/target/site</directory>
       <outputDirectory>docs/struts2-bundles/admin</outputDirectory>
    </fileSet>  
    
    <fileSet>
       <directory>../bundles/demo/target/site</directory>
       <outputDirectory>docs/struts2-bundles/demo</outputDirectory>
    </fileSet>  

    <!-- Include the source code in the assembly -->
    <fileSet>
      <directory>../</directory>
      <outputDirectory>src/</outputDirectory>
      <includes>
        <include>pom.xml</include>
        <include>src/</include>
      </includes>
     </fileSet>
    <fileSet>
      <directory>../apps</directory>
      <outputDirectory>src/apps</outputDirectory>
      <includes>
        <include>pom.xml</include>
        <include>src/</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../apps/showcase</directory>
      <outputDirectory>src/apps/showcase</outputDirectory>
      <includes>
        <include>pom.xml</include>
        <include>src/</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../apps/rest-showcase</directory>
      <outputDirectory>src/apps/rest-showcase</outputDirectory>
      <includes>
        <include>pom.xml</include>
        <include>src/</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../assembly</directory>
      <outputDirectory>src/assembly</outputDirectory>
      <includes>
        <include>pom.xml</include>
        <include>src/</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../core</directory>
      <outputDirectory>src/core</outputDirectory>
      <includes>
        <include>pom.xml</include>
        <include>src/</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>../plugins</directory>
      <outputDirectory>src/plugins</outputDirectory>
      <excludes>
        <exclude>*/target/**</exclude>
        <exclude>target/**</exclude>
      </excludes>
    </fileSet>
  </fileSets>
</assembly>
