<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">

  <id>wildfly10</id>
  <formats>
    <format>war</format>
    <format>dir</format>
  </formats>

  <includeBaseDirectory>false</includeBaseDirectory>
  <dependencySets>
    <dependencySet>
      <includes>
        <include>org.dashbuilder:dashbuilder-webapp:war</include>
      </includes>
      <outputDirectory>.</outputDirectory>
      <unpack>true</unpack>
      <unpackOptions>
        <excludes>
          <!-- JBoss specific files from development environment war artifact. -->
          <exclude>WEB-INF/classes/application-roles.properties</exclude>
          <exclude>WEB-INF/classes/application-users.properties</exclude>
          <exclude>WEB-INF/jboss-web.xml</exclude>
          <exclude>WEB-INF/beans.xml</exclude>          
          
          <!-- GWT DevMode related. -->
          <exclude>**/*devmode.js</exclude>
        </excludes>
      </unpackOptions>
    </dependencySet>
  </dependencySets>

  <fileSets>
    <fileSet>
      <directory>${project.basedir}/src/main/wildfly10/</directory>
      <outputDirectory>.</outputDirectory>
    </fileSet>
  </fileSets>
  
</assembly>
