On Thursday, September 20, 2018 at 2:22:02 PM UTC+2, 
alexrevanth...@gmail.com wrote:
>
> yes i am already done it but i need to add agent when ever i need the 
> coverage because i doesn't need the coverage all the time ....
>     Ok i can restart the tomcat after adding agent but is there any way to 
> add agent by using ant file or java program,...?


Again - as was already said ( 
https://groups.google.com/d/msg/jacoco/RWV1Ky5yKzA/zfOtCpa4CQAJ ):

there is documentation.

You can find it at https://www.jacoco.org/jacoco/trunk/doc/
It describes everything what is available out-of-the-box, no more, no less.
So could you please finally make an effort to read it?
In particular it describes available Ant Tasks 
- https://www.jacoco.org/jacoco/trunk/doc/ant.html
And documentation does not describe anything specific to "catalina.sh", 
because in JaCoCo there is simply nothing out-of-the dedicated explicitly 
to it.

Also by reading Tomcat documentation ( 
https://tomcat.apache.org/tomcat-8.0-doc/RUNNING.txt ) you will find that 
additional Java options such as "-javaagent" (exactly like other Java 
options such as "-Xmx") can be specified via environment variable 
CATALINA_OPTS

Last but not least - before asking next question, please first spend more 
time than you do now on research by your own.


Regards,
Evgeny

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/98418505-6951-46fb-a3e1-a742833fb34b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to