Hi,
It turns out emma is waiting for cruisecontrol to terminate. Answering
my previous question, the jvm shutdown hook is added through
Runtime.addShutdownHook (java 1.3. or later).
The thing I don't quite understand is that why emma is waiting for
cruisecontrol to terminate. It should wait for tomcat to shutdown (which
we already did that in the ant script). Remember that tomcat and
cruisecontrol are two different OS processes.
Anyway, I solve the problem by using two installation of jvm (not very
elegant).
The first installation of jvm is normal one, without emma in its
lib/ext. It runs all nightly build tasks except emma.
Then I use the second installation of jvm (with emma in its lib/ext) to
run "ant -f emma.build.xml hackyCore_Build.emma", and copy emma report
to hackydevsite.
The result is at
http://hackydev.ics.hawaii.edu/hackyDevSite/configurationBuildReport.do?year=2005&month=11&day=21&configuration=Hackystat-All
Note that I am only testing with hackyCore_Build and Kernel. (I will
reformat emma summary later).
The full system build will happen midnight, let's cross our fingures and
hope it goes through.
Cheers,
Cedric