<?xml version="1.0"?>
<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">
  <parent>
    <groupId>org.apache.ant</groupId>

    <artifactId>ant-parent</artifactId>

    <relativePath>../pom.xml</relativePath>

    <version>1.7.0</version>

  </parent>

  <modelVersion>4.0.0</modelVersion>

  <groupId>org.apache.ant</groupId>

  <artifactId>ant-junit</artifactId>

  <version>1.7.0</version>

  <description>contains the junit and junirreport tasks</description>

  <dependencies>
    <dependency>
      <groupId>org.apache.ant</groupId>

      <artifactId>ant</artifactId>

      <version>1.7.0</version>

      <scope>compile</scope>

    </dependency>

    <dependency>
      <groupId>junit</groupId>

      <artifactId>junit</artifactId>

      <version>3.8.2</version>

      <scope>compile</scope>

    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>

        <executions>
          <execution>
            <id>create-timestamp-file</id>

            <phase>generate-resources</phase>

            <goals>
              <goal>run</goal>

            </goals>

            <configuration>
              <tasks>
                <mkdir dir="${project.build.outputDirectory}"/>

                <copy todir="${project.build.outputDirectory}/org/apache/tools/ant/taskdefs/optional/junit/xsl">
                  <fileset dir="${project.build.sourceDirectory}/../etc">
                    <include name="junit-frames.xsl"/>

                    <include name="junit-noframes.xsl"/>

                  </fileset>

                </copy>
              
              </tasks>

            </configuration>

          </execution>


        </executions>

      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-compiler-plugin</artifactId>

        <configuration>
          <source>1.2</source>

          <target>1.2</target>

          <includes>
            <include>org/apache/tools/ant//taskdefs/optional/junit/*</include>

          </includes>

        </configuration>

      </plugin>

    </plugins>

    <sourceDirectory>../../../../src/main</sourceDirectory>

    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>

    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>

    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>

    <directory>../../../../target/${project.artifactId}</directory>

  </build>

</project>
