IO-451 ant test fails - resources missing from test classpath

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1613938 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/build.xml b/build.xml
index 4683f08..a8c7273 100644
--- a/build.xml
+++ b/build.xml
@@ -63,6 +63,9 @@
   <!-- The base directory for unit test sources -->
   <property name="test.home"               value="src/test/java"/>
 
+  <!-- The base directory for unit test resources -->
+  <property name="test.resources.home"               value="src/test/resources"/>
+
   <!-- Download lib dir -->
   <property name="download.lib.dir"        value="lib"/>
 
@@ -115,6 +118,7 @@
   <path id="test.classpath">
     <pathelement location="${build.home}/classes"/>
     <pathelement location="${build.home}/test-classes"/>
+    <pathelement location="${build.home}/test-resources"/>
     <pathelement location="${junit.jar}"/>
     <path refid="downloaded.lib.classpath"/>
   </path>
@@ -177,6 +181,9 @@
              includeantruntime="false">
           <classpath refid="test.classpath"/>
       </javac>
+      <copy todir="${build.home}/test-resources">
+        <fileset dir="${test.resources.home}"/>
+      </copy>
     </target>
 
   <target name="test"  depends="compile.tests"
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 7879b07..df11060 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -47,6 +47,9 @@
   <body>
     <!-- The release date is the date RC is cut -->
     <release version="2.5" date="2014-??-??" description="New features and bug fixes.">
+      <action issue="IO-451" dev="sebb" type="fix" due-to="David Standish">
+         ant test fails - resources missing from test classpath
+      </action>
       <action issue="IO-435" dev="tn" type="fix" due-to="Dominik Stadler">
          Document that FileUtils.deleteDirectory, directoryContains and cleanDirectory
          may throw an IllegalArgumentException in case the passed directory does not