1) I've done a lot of googling and found nothing.
2) "ant -verbose junitAll" works fine. "ant -q junitAll" and "ant junitAll" doesnot work.
3) I've tried to put a little sleep task in between the junitreport and the replace. that didn't work.
4) I found a Hacked solution.. I switched the call to the junit sensor and the replace task (previously the replace was first followed by the call the junit sensor). so now it looks like
<antcall target= "check-junit" />
<antcall target= "sendJUnitDataToHackystat" />
<!-- Get rid of references to hackystat.admin.userkey in the junit output files. -->
<replace dir= "${report.module.dir}" token= "${hackystat.admin.userkey}" value= "*ADMIN-KEY*" />
<!-- Need by hackyDevSite, to arrange move junit xml report to parent dir and rename it according to hackystat module name. -->
<copy file= "${report.module.dir}/TESTS-TestSuites.xml" tofile= "${report.module.dir}/../${module.name}.xml" />
And now everything appears to be ok. what the heck!
I didn't commit my changes.. I will continue to look at the problem to figure why. I will probably commit my changes after double checking that everything is still ok in the Java 1.4 world.
thanks, aaron
3) there are appears to be a problem with Ant 1.6.5's replace task.. I get the following exception when the build.utils.xml tries to replace the Admin key after running the unittests. The funny thing is that I stripped out the Ant xml code and ran the replace task in its own little build.xml file and everything works. There seems to be a problem with the replace task when other things are executed before it. I haven't figured out why yet. the task works fine in Java 1.4!
[echo] (hackyBuildUtils) Running JUnit tests on module hackyStatistics.
BUILD FAILED
C:\java\cvs\hackyBuild\build.xml:499: The following error occurred while executi
ng this line:
C:\java\cvs\hackyBuild\build.utils.xml:725: The following error occurred while e
xecuting this line:
C:\java\cvs\hackyBuild\build.utils.xml:486: IOException in C:\java\cvs\hackyBuil
d\build\reports\junit\hackyStatistics\org\hackystat\stdext\statistic\0_TestDataS
equence.html - java.io.IOException:Failed to delete C:\java\cvs\hackyBuild\build
\reports\junit\hackyStatistics\org\hackystat\stdext\statistic\0_TestDataSequence
.html while trying to rename C:\java\cvs\hackyBuild\build\reports\junit\hackySta
tistics\org\hackystat\stdext\statistic\rep1420225305.tmp
