added IT with Ant 1.6 since it is still a supported version

git-svn-id: https://svn.apache.org/repos/asf/maven/ant-tasks/trunk@965040 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/it/ant-run-plugin-with-ant-1.6/build.xml b/src/it/ant-run-plugin-with-ant-1.6/build.xml
new file mode 100644
index 0000000..39dcebf
--- /dev/null
+++ b/src/it/ant-run-plugin-with-ant-1.6/build.xml
@@ -0,0 +1,26 @@
+<project name="maven-ant-tasks" default="test" xmlns:artifact="urn:maven-artifact-ant" xmlns:test="urn:test-tasks">
+
+  <target name="initTaskDefs">
+    <xmlproperty file="../../../pom.xml" prefix="pom.xml" />
+
+    <path id="maven-ant-tasks.classpath" path="../../maven-ant-tasks-${pom.xml.project.version}.jar" />
+    <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"
+             classpathref="maven-ant-tasks.classpath"/>
+  </target>
+
+  <target name="test" depends="initTaskDefs">
+    <artifact:localRepository id="local.repository" path="${basedir}/target/local-repo" layout="default"/>
+
+    <artifact:pom file="pom.xml" id="mypom"/>
+
+  	<mkdir dir="target"/>
+    <touch file="target/${mypom.build.finalName}"/>
+
+    <artifact:dependencies fileSetId="mydeps" pomRefId="mypom"/>
+
+  	<copy todir="target">
+      <fileset refid="mydeps"/>
+    </copy>
+  </target>
+
+</project>
\ No newline at end of file
diff --git a/src/it/ant-run-plugin-with-ant-1.6/invoker.properties b/src/it/ant-run-plugin-with-ant-1.6/invoker.properties
new file mode 100644
index 0000000..b5a9d80
--- /dev/null
+++ b/src/it/ant-run-plugin-with-ant-1.6/invoker.properties
@@ -0,0 +1 @@
+invoker.goals = validate
diff --git a/src/it/ant-run-plugin-with-ant-1.6/pom.xml b/src/it/ant-run-plugin-with-ant-1.6/pom.xml
new file mode 100755
index 0000000..3e03d42
--- /dev/null
+++ b/src/it/ant-run-plugin-with-ant-1.6/pom.xml
@@ -0,0 +1,63 @@
+<?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/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>it.ant-tasks</groupId>
+  <artifactId>ant-1.6-run</artifactId>
+  <packaging>pom</packaging>
+
+  <name>ant-run</name>
+  <version>0.10-SNAPSHOT</version>
+  <description>
+    Try to call the ant tasks through the ant run plugin with Ant 1.6.
+  </description>
+
+  <dependencies><!-- dependencies to be downloaded by ant tasks -->
+    <dependency>
+      <groupId>org.apache.commons</groupId>
+      <artifactId>commons-io</artifactId>
+      <version>1.3.2</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <finalName>testfile</finalName>
+
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <version>1.2</version>
+        <dependencies>
+          <dependency>
+            <groupId>ant</groupId>
+            <artifactId>ant</artifactId>
+            <version>1.6</version>
+          </dependency>
+          <dependency>
+            <groupId>ant</groupId>
+            <artifactId>ant-launcher</artifactId>
+            <version>1.6</version>
+            <scope>runtime</scope>
+          </dependency>
+        </dependencies>
+        <executions>
+          <execution>
+            <id>run</id>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>validate</phase>
+            <configuration>
+              <tasks>
+                <ant antfile="build.xml"/>
+              </tasks>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/src/it/ant-run-plugin-with-ant-1.6/verify.bsh b/src/it/ant-run-plugin-with-ant-1.6/verify.bsh
new file mode 100644
index 0000000..d96268b
--- /dev/null
+++ b/src/it/ant-run-plugin-with-ant-1.6/verify.bsh
@@ -0,0 +1,30 @@
+import java.io.*;
+import java.util.*;
+import org.codehaus.plexus.util.*;
+
+try
+{
+    File outputFolder = new File( basedir, "target" );
+
+    File testFile = new File( outputFolder, "testfile");
+    if ( !testFile.isFile() )
+    {
+        System.err.println( "Could not find generated file: " + testFile );
+        return false;
+    }
+
+    File depFile = new File( outputFolder, "org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.jar");
+    if ( !depFile.isFile() )
+    {
+        System.err.println( "Could not find copied dependency file: " + depFile );
+        return false;
+    }
+
+}
+catch( Throwable t )
+{
+    t.printStackTrace();
+    return false;
+}
+
+return true;