Hi Krishantha,
Did you find a solution to set the agent without editing the wso2server.sh

Thanks,
Nuwanw


On Wed, Apr 29, 2015 at 1:04 PM, Krishantha Samaraweera <[email protected]
> wrote:

>
>
> On Thu, Apr 30, 2015 at 1:31 AM, Krishantha Samaraweera <
> [email protected]> wrote:
>
>> Hi all,
>>
>> I'm trying to assign Jacoco (code coverage) java agent to our products
>> and found it's not OOB supported though command line. So I had to edit the
>> wso2server.sh and set it as JAVA_OPTS argument.
>>
>> sh wso2server.sh
>> -javaagent:/Users/krishantha/xxx/agent/jacocoagent.jar=destfile=/Users/krishantha/xxx/target/jacoco.exec,append=true
>> -* Not working*
>>
>> export
>> JAVA_OPTS=-javaagent:/Users/krishantha/xxx/agent/jacocoagent.jar=destfile=/Users/krishantha/xxx/target/jacoco.exec,append=true
>> sh wso2sever.sh - *Works*
>>
>> Is there any other way to achieve this without editing the shell script
>> or exporting JAVA_OPTS. Since this a VM argument doesn't it need to be
>> supported though command line ?
>>
>> Thanks,
>> Krishantha.
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to