[java code coverage] Re: Is there any way to configure javaagent in catalina.sh..?
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.
[java code coverage] Re: Is there any way to configure javaagent in catalina.sh..?
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,...? On Thursday, September 20, 2018 at 4:51:54 PM UTC+5:30, Evgeny Mandrikov wrote: > On Thursday, September 20, 2018 at 9:31:39 AM UTC+2, alexrev...@gmail.com > wrote:Is there any way to configure javaagent in catalina.sh whilte the > tomcat is running...? > > > You can configure agent in catalina.sh , but as was correctly already replied > to one of your previous messages ( > https://groups.google.com/d/msg/jacoco/RWV1Ky5yKzA/zfOtCpa4CQAJ ): > > > > "The agent starts together with the vm" > > > > In other words - there is no way to start agent without (re)starting tomcat. -- 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/dd94cb1b-562f-4a05-8a97-3cf0c6cb1887%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[java code coverage] Re: Is there any way to configure javaagent in catalina.sh..?
On Thursday, September 20, 2018 at 9:31:39 AM UTC+2, alexrevanth...@gmail.com wrote: > > Is there any way to configure javaagent in catalina.sh whilte the tomcat > is running...? You can configure agent in catalina.sh , but as was correctly already replied to one of your previous messages ( https://groups.google.com/d/msg/jacoco/RWV1Ky5yKzA/zfOtCpa4CQAJ ): "The agent starts together with the vm" In other words - there is no way to start agent without (re)starting tomcat. -- 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/c5bc3f8e-085f-4489-9457-bde077a95ccd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.