<!--
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.
-->
<component xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.3 http://maven.apache.org/xsd/component-1.1.3.xsd">
  <dependencySets>
    <!-- Put the air jars into the lib directory -->
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>lib</outputDirectory>
      <!-- FlashBuilder doesn't like us appending the version to the jar name -->
      <!--outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping-->
      <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
      <includes>
        <include>com.adobe.air.compiler:adt:jar</include>
      </includes>
    </dependencySet>
    <!-- Unpack the platform-directories to the lib directory-->
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <includes>
        <include>com.adobe.air.compiler:adt:zip:android</include>
        <include>com.adobe.air.compiler:adt:zip:desktop</include>
        <include>com.adobe.air.compiler:adt:zip:ios</include>
        <include>com.adobe.air.compiler:adt:zip:win</include>
      </includes>
      <unpack>true</unpack>
    </dependencySet>
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputFileNameMapping>frameworks</outputFileNameMapping>
      <includes>
        <include></include>
      </includes>
    </dependencySet>
    <!-- Put the air swcs into the frameworks/libs/air directory -->
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>frameworks/libs/air</outputDirectory>
      <includes>
        <include>com.adobe.air.framework:*:swc</include>
      </includes>
    </dependencySet>
    <!-- Put the air debug launcher into the bin directory -->
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>bin</outputDirectory>
      <includes>
        <include>com.adobe.air.runtime:adl:exe:win</include>
      </includes>
      <outputFileNameMapping>adl.exe</outputFileNameMapping>
    </dependencySet>
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>bin</outputDirectory>
      <includes>
        <include>com.adobe.air.runtime:adl:exe:mac</include>
      </includes>
      <outputFileNameMapping>adl</outputFileNameMapping>
    </dependencySet>
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>runtimes/air/win</outputDirectory>
      <includes>
        <include>com.adobe.air.runtime:air:zip:win</include>
      </includes>
      <unpack>true</unpack>
    </dependencySet>
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>runtimes/air/mac</outputDirectory>
      <includes>
        <include>com.adobe.air.runtime:air:zip:mac</include>
      </includes>
      <unpack>true</unpack>
    </dependencySet>
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>runtimes/air/android</outputDirectory>
      <includes>
        <include>com.adobe.air.runtime:air:zip:android</include>
      </includes>
      <unpack>true</unpack>
    </dependencySet>
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>runtimes/air-captive/win</outputDirectory>
      <includes>
        <include>com.adobe.air.runtime:air-captive:zip:win</include>
      </includes>
      <unpack>true</unpack>
    </dependencySet>
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>runtimes/air-captive/mac</outputDirectory>
      <includes>
        <include>com.adobe.air.runtime:air-captive:zip:mac</include>
      </includes>
      <unpack>true</unpack>
    </dependencySet>
    <!-- Put the air templates into the templates directory -->
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <outputDirectory>templates</outputDirectory>
      <includes>
        <include>com.adobe.air:templates:jar</include>
      </includes>
      <unpack>true</unpack>
    </dependencySet>
    <!-- Unpack the rest of the stuff that usually belongs to an AIR SDK -->
    <dependencySet>
      <useProjectArtifact>false</useProjectArtifact>
      <includes>
        <include>com.adobe.air:misc:zip</include>
      </includes>
      <unpack>true</unpack>
    </dependencySet>
  </dependencySets>
  <fileSets>
    <!-- Copy the adt scripts and update the air version-number -->
    <fileSet>
      <directory>src/main/resources/air</directory>
      <outputDirectory>bin</outputDirectory>
      <includes>
        <include>**</include>
      </includes>
      <filtered>true</filtered>
    </fileSet>
  </fileSets>
</component>
