Revision 5753
Added by ben leinfelder about 14 years ago
build.xml | ||
---|---|---|
271 | 271 |
<property name="docdir" value="./docs" /> |
272 | 272 |
<property name="cgidir" value="./cgi-bin" /> |
273 | 273 |
<property name="testdir" value="./test" /> |
274 |
<property name="testtorun" value="BuildIndexTest" />
|
|
274 |
<property name="testtorun" value="NonAsciiCharacterTest" />
|
|
275 | 275 |
<property name="junittestsdir" |
276 | 276 |
value="./test/edu/ucsb/nceas/metacattest" /> |
277 | 277 |
<property name="junitnettestsdir" |
... | ... | |
1093 | 1093 |
|
1094 | 1094 |
<target name="testprep" depends="jar,clientjar,harvesterjar"> |
1095 | 1095 |
<mkdir dir="${build.tests}" /> |
1096 |
<copy todir="${build.tests}" filtering="yes">
|
|
1096 |
<copy todir="${build.tests}" encoding="UTF-8">
|
|
1097 | 1097 |
<fileset dir="${testdir}"> |
1098 | 1098 |
<include name="edu/**" /> |
1099 | 1099 |
</fileset> |
1100 | 1100 |
</copy> |
1101 |
<copy todir="${build.tests}" file="${testdir}/test.properties" |
|
1102 |
filtering="yes" /> |
|
1101 |
<copy todir="${build.tests}" file="${testdir}/test.properties" /> |
|
1103 | 1102 |
|
1104 | 1103 |
<!-- copy and compile the tests into a jar file --> |
1105 | 1104 |
<javac srcdir="${build.tests}" destdir="${build.tests}" |
1106 |
debug="on" includes="**/*.java"> |
|
1105 |
debug="on" includes="**/*.java" encoding="UTF-8">
|
|
1107 | 1106 |
<classpath> |
1108 | 1107 |
<path refid="compile.classpath" /> |
1109 | 1108 |
<fileset dir="${build.dir}"> |
... | ... | |
1124 | 1123 |
<!-- use the ant "junit" task to run JUnit tests. --> |
1125 | 1124 |
<junit printsummary="yes" haltonfailure="no" fork="yes" |
1126 | 1125 |
haltonerror="no"> |
1127 |
<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient" />
|
|
1126 |
<jvmarg value="-Dfile.encoding=UTF-8"/>
|
|
1128 | 1127 |
<classpath> |
1129 | 1128 |
<path refid="test.classpath" /> |
1130 | 1129 |
<fileset dir="${build.dir}"> |
... | ... | |
1156 | 1155 |
<junit printsummary="yes" haltonfailure="no" fork="yes" |
1157 | 1156 |
haltonerror="no" showoutput="yes"> |
1158 | 1157 |
<!--<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>--> |
1158 |
<jvmarg value="-Dfile.encoding=UTF-8"/> |
|
1159 | 1159 |
<classpath> |
1160 | 1160 |
<path refid="test.classpath" /> |
1161 | 1161 |
<fileset dir="${build.dir}"> |
Also available in: Unified diff
copy, compile, and run the test classes using UTF-8 encoding since they contain special characters