Hi,
exec *files* are only written if output=file. If output=tcpserver this
means you need another process to connect to the specified port and
request a dump. This is possible e.g. with the Ant task or the maven goal.
> What does it mean by connection is open at the time when the VM terminates???
This means that if some dump client has a TCP connection to the JaCoCo
agent at the point in time when the JVM shuts down execution data is
written to that connection. Note that the Ant/Maven dump goals are not
suitable for this as they do a "one shot" dump only and disconnect
afterwards. To get dump on exit over a TCP connection you would need a
special client which stays connected.
But I don't think you need this, as you should have two other options:
1) Use output=false and dumponexit=true and shutdown the server after
you've executed your tests
2) Use output=tcpserver and request a dump with Ant/Maven after you've
executed your tests (no need to shutdown the server for this)
Best regards,
-marc
--
Marc Hoffmann
hoff...@mountainminds.com
_______________________________________________
Mountainminds GmbH & Co. KG
Nussbaumstr. 4 * 80336 Muenchen * Germany
Phone/Fax
+49-700-68664637 * 0700-MTNMINDS
Registergericht Muenchen * HRA 80201
Mountainminds Verwaltungs GmbH
Registergericht Muenchen * HRB 143183
Geschaeftsfuehrer Marc Hoffmann