<?xml version="1.0" encoding="UTF-8"?>
<!--

    Flexmojos is a set of maven goals to allow maven users to compile, optimize and test Flex SWF, Flex SWC, Air SWF and Air SWC.
    Copyright (C) 2008-2012  Marvin Froeder <marvin@flexmojos.net>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses />.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-unittest</artifactId>
        <version>6.0.0</version>
    </parent>

    <artifactId>flexmojos-unittest-support</artifactId>
    <packaging>swc</packaging>

    <name>Flexmojos Unit Test support</name>

    <build>
        <plugins>
            <plugin>
                <groupId>net.flexmojos.oss</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <dependencies>
                    <dependency>
                        <groupId>${flex.groupId}</groupId>
                        <artifactId>compiler</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <id>gas</id>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <includeJavaClasses>
                                <include>net.flexmojos.oss.test.report.*</include>
                            </includeJavaClasses>
                            <beanTemplate>
                                <template>${basedir}/src/main/template/beanBase.gsp</template>
                                <template>${basedir}/src/main/template/bean.gsp</template>
                            </beanTemplate>
                            <entityTemplate>
                                <template>${basedir}/src/main/template/beanBase.gsp</template>
                                <template>${basedir}/src/main/template/bean.gsp</template>
                            </entityTemplate>
                        </configuration>
                    </execution>
                    <execution>
                        <id>const</id>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <generatorToUse>constraints</generatorToUse>
                            <includeJavaClasses>
                                <include>net.flexmojos.oss.test.monitor.CommConstraints</include>
                            </includeJavaClasses>
                        </configuration>
                    </execution>
                    <execution>
                        <id>air</id>
                        <goals>
                            <goal>compile-swc</goal>
                        </goals>
                        <configuration>
                            <classifier>air</classifier>
                            <includeClasses>
                                <scan>
                                    <excludes>
                                        <exclude>net.flexmojos.oss.unitestingsupport.TestApplication</exclude>
                                    </excludes>
                                </scan>
                            </includeClasses>
                        </configuration>
                    </execution>
                    <execution>
                        <id>flex</id>
                        <goals>
                            <goal>compile-swc</goal>
                        </goals>
                        <configuration>
                            <classifier>flex</classifier>
                            <includeClasses>
                                <scan>
                                    <excludes>
                                        <exclude>net.flexmojos.oss.unitestingsupport.TestAirApplication</exclude>
                                    </excludes>
                                </scan>
                            </includeClasses>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <includeClasses>
                        <scan>
                            <excludes>
                                <exclude>net.flexmojos.oss.unitestingsupport.TestApplication</exclude>
                                <exclude>net.flexmojos.oss.unitestingsupport.TestAirApplication</exclude>
                            </excludes>
                        </scan>
                    </includeClasses>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>flexmojos-tester</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>${flex.groupId}</groupId>
                <artifactId>framework</artifactId>
                <version>${flex.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

</project>