Skip to content

Commit 08d4248

Browse files
committed
Bugzilla 22332: Deprecated FileUtils string methods, Code style-up
adds data/test directory to test classpath Submitted by: Matthew Hawthorne <mhawthorne at alumni.pitt.edu> git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140387 13f79535-47bb-0310-9956-ffa450edef68
1 parent 966a65c commit 08d4248

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

build.xml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!--
55
"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 $
77
-->
88

99

@@ -60,6 +60,9 @@
6060
<!-- The base directory for unit test sources -->
6161
<property name="test.home" value="src/test"/>
6262

63+
<!-- Test data directory -->
64+
<property name="data.test" value="data/test"/>
65+
6366
<!-- ========== Compiler Defaults ========================================= -->
6467

6568

@@ -152,6 +155,12 @@
152155
<copy todir="${build.home}/tests" filtering="off">
153156
<fileset dir="${test.home}" excludes="**/*.java"/>
154157
</copy>
158+
159+
<!-- Copies test data -->
160+
<copy todir="${build.home}/tests" filtering="off">
161+
<fileset dir="${data.test}"/>
162+
</copy>
163+
155164
</target>
156165

157166
<target name="clean"
@@ -236,30 +245,31 @@
236245
<classpath refid="test.classpath"/>
237246
</java>
238247
</target>
239-
-->
248+
-->
240249
<target name="test.io" depends="compile.tests">
241-
250+
242251
<taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
243-
252+
244253
<junit printsummary="yes" haltonfailure="${test.failonerror}" fork="yes">
245254

246-
<formatter type="brief" usefile="false"/>
255+
<formatter type="brief" usefile="false"/>
247256
<classpath refid="test.classpath"/>
248257

249258
<batchtest todir="${build.home}/tests">
250259
<fileset dir="${build.home}/tests">
251260
<include name="**/test/*TestCase.class"/>
252261
<include name="**/*Test.class" />
253-
<include name="**/*TestCase.class" />
262+
<include name="**/*TestCase.class" />
254263
<include name="**/Test*.class" />
255264
<include name="**/output/Test*.class" />
256265
<exclude name="**/AllTest.class" />
257266
<exclude name="**/*$$*Test.class" />
258267
<exclude name="**/compress/zip/*.class" />
259268
<exclude name="**/compress/tar/*.class" />
269+
<exclude name="**/FileBasedTestCase.class" />
260270
</fileset>
261271
</batchtest>
262-
</junit>
272+
</junit>
263273
</target>
264-
274+
265275
</project>

0 commit comments

Comments
 (0)