|
3 | 3 |
|
4 | 4 | <!-- |
5 | 5 | "IO" component of the Jakarta Commons Subproject |
6 | | - $Id: build.xml,v 1.11 2003/07/27 17:08:29 jeremias Exp $ |
| 6 | + $Id: build.xml,v 1.12 2003/08/21 18:59:26 jeremias Exp $ |
7 | 7 | --> |
8 | 8 |
|
9 | 9 |
|
|
60 | 60 | <!-- The base directory for unit test sources --> |
61 | 61 | <property name="test.home" value="src/test"/> |
62 | 62 |
|
| 63 | + <!-- Test data directory --> |
| 64 | + <property name="data.test" value="data/test"/> |
| 65 | + |
63 | 66 | <!-- ========== Compiler Defaults ========================================= --> |
64 | 67 |
|
65 | 68 |
|
|
152 | 155 | <copy todir="${build.home}/tests" filtering="off"> |
153 | 156 | <fileset dir="${test.home}" excludes="**/*.java"/> |
154 | 157 | </copy> |
| 158 | + |
| 159 | + <!-- Copies test data --> |
| 160 | + <copy todir="${build.home}/tests" filtering="off"> |
| 161 | + <fileset dir="${data.test}"/> |
| 162 | + </copy> |
| 163 | + |
155 | 164 | </target> |
156 | 165 |
|
157 | 166 | <target name="clean" |
|
236 | 245 | <classpath refid="test.classpath"/> |
237 | 246 | </java> |
238 | 247 | </target> |
239 | | ---> |
| 248 | +--> |
240 | 249 | <target name="test.io" depends="compile.tests"> |
241 | | - |
| 250 | + |
242 | 251 | <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/> |
243 | | - |
| 252 | + |
244 | 253 | <junit printsummary="yes" haltonfailure="${test.failonerror}" fork="yes"> |
245 | 254 |
|
246 | | - <formatter type="brief" usefile="false"/> |
| 255 | + <formatter type="brief" usefile="false"/> |
247 | 256 | <classpath refid="test.classpath"/> |
248 | 257 |
|
249 | 258 | <batchtest todir="${build.home}/tests"> |
250 | 259 | <fileset dir="${build.home}/tests"> |
251 | 260 | <include name="**/test/*TestCase.class"/> |
252 | 261 | <include name="**/*Test.class" /> |
253 | | - <include name="**/*TestCase.class" /> |
| 262 | + <include name="**/*TestCase.class" /> |
254 | 263 | <include name="**/Test*.class" /> |
255 | 264 | <include name="**/output/Test*.class" /> |
256 | 265 | <exclude name="**/AllTest.class" /> |
257 | 266 | <exclude name="**/*$$*Test.class" /> |
258 | 267 | <exclude name="**/compress/zip/*.class" /> |
259 | 268 | <exclude name="**/compress/tar/*.class" /> |
| 269 | + <exclude name="**/FileBasedTestCase.class" /> |
260 | 270 | </fileset> |
261 | 271 | </batchtest> |
262 | | - </junit> |
| 272 | + </junit> |
263 | 273 | </target> |
264 | | - |
| 274 | + |
265 | 275 | </project> |
0 commit comments