I am trying to run the generateDump target of the build file, but all I get is the following error
[jacoco:dump] Connecting to localhost/127.0.0.1:1001
C:\Users\DGM(IT)\Downloads\Compressed\JaCoCo_KT\JaCoCo_KT\JaCoCo_ANT.xml:15: Unable to dump coverage data
Total time: 0 seconds
The file builds successfully when I run the command
ant -buildfile C:/Users/DGM(IT)/Downloads/Compressed/JaCoCo_KT/JaCoCo_KT/JaCoCo_ANT.xml
What could be the possible reasons why the generateDump target won't work?
I am using jboss-4.2.3. I have added the following jvm option to the run.conf file.
set JAVA_OPTS="%JAVA_OPTS% -javaagent:C:/Users/DGM(IT)/Downloads/Compressed/jacoco-0.7.7.201606060606/lib/jacocoagent.jar=output=tcpserver,port=1001"
Yes I am able to run jacoco outside ant. The coverage.exec file is generated by adding the jvm option (in cmd)