<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/emma/patches/" rel="alternate"/><link href="https://sourceforge.net/p/emma/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/emma/patches/</id><updated>2019-05-19T04:56:52.926000Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>#10 Add a setting for the character encoding of source files</title><link href="https://sourceforge.net/p/emma/patches/10/?limit=25#1e93" rel="alternate"/><published>2019-05-19T04:56:52.926000Z</published><updated>2019-05-19T04:56:52.926000Z</updated><author><name>Aloys寒风</name><uri>https://sourceforge.net/u/jiangxincode/</uri></author><id>https://sourceforge.net65ba5b812097ff128810c0373ff6a2c8617afcd0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have merge this patch on: &lt;br/&gt;
&lt;a href="https://github.com/jiangxincode/Emma/commit/4a7040b2768a56901d41413687f820758b6464f4" rel="nofollow"&gt;https://github.com/jiangxincode/Emma/commit/4a7040b2768a56901d41413687f820758b6464f4&lt;/a&gt;&lt;br/&gt;
So I think this issues should be closed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add a setting for the character encoding of source files</title><link href="https://sourceforge.net/p/emma/patches/10/" rel="alternate"/><published>2013-03-03T14:31:27Z</published><updated>2013-03-03T14:31:27Z</updated><author><name>Keita Kita</name><uri>https://sourceforge.net/u/mikanbako/</uri></author><id>https://sourceforge.netb4ab09e7d2fc5f05fcbc669c1391185924ae942d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch adds a feature that set the character encoding of source files. Currently, character encodings of source files and the platform have to be matched.&lt;/p&gt;
&lt;p&gt;This patch adds two ways to set the character encoding of source files.&lt;br /&gt;
1) "report.source.encoding" property as EMMA report generation property.&lt;br /&gt;
2) "sourceencoding" attribute of html element for Ant.&lt;br /&gt;
If the character encoding of source files is not set, the default encoding of the platform ("file.encoding" property) is set. If "file.encoding" property is also not defined, UTF-8 is set.&lt;/p&gt;
&lt;p&gt;Currently, the character encoding of source files and the platform have to be matched. Because the current HTML report generator uses "file.encoding" property of JRE while reading source files. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>enable specifying emma port number</title><link href="https://sourceforge.net/p/emma/patches/9/" rel="alternate"/><published>2009-04-07T19:25:54Z</published><updated>2009-04-07T19:25:54Z</updated><author><name>John Sillers</name><uri>https://sourceforge.net/u/jsillers/</uri></author><id>https://sourceforge.net4df4f9bcdc06c08f61e3d25001f66ad67df0977f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Our product consists of 4 different servers. The idea is that you can spread the load across different machines. The servers communicate with one another through JMS. As a developer I run all the servers on my development box. I instrument and merge into a single directory. If I instrument the code for only one of the servers I can run our 'integration tests' with the emma instrumentation directory at the front of the classpath and I can determine the code coverage. It breaks down when I instrument the code for multiple servers and try to run them concurrently. I see this in the log for the 2nd server I try to start:&lt;/p&gt;
&lt;p&gt;EMMA: collecting runtime coverage data ...&lt;br /&gt;
java.net.BindException: Address already in use: JVM_Bind&lt;br /&gt;
at java.net.PlainSocketImpl.socketBind(Native Method)&lt;br /&gt;
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)&lt;br /&gt;
at java.net.ServerSocket.bind(ServerSocket.java:319)&lt;br /&gt;
at java.net.ServerSocket.&amp;lt;init&amp;gt;(ServerSocket.java:185)&lt;br /&gt;
at java.net.ServerSocket.&amp;lt;init&amp;gt;(ServerSocket.java:97)&lt;br /&gt;
at com.vladium.emma.rt.RTController.start(RTController.java:99)&lt;br /&gt;
at com.vladium.emma.rt.RT.reset(RT.java:222)&lt;br /&gt;
at com.vladium.emma.rt.RT.&amp;lt;clinit&amp;gt;(RT.java:540)&lt;br /&gt;
at com.ali.statusserver.StatusServerBootstrap.$VRi(StatusServerBootstrap.java)&lt;br /&gt;
at com.ali.statusserver.StatusServerBootstrap.&amp;lt;clinit&amp;gt;(StatusServerBootstrap.java)&lt;br /&gt;
java.lang.Error: EMMA: runtime controller could not be started, aborting&lt;br /&gt;
at com.vladium.emma.rt.RT.reset(RT.java:233)&lt;br /&gt;
at com.vladium.emma.rt.RT.&amp;lt;clinit&amp;gt;(RT.java:540)&lt;br /&gt;
at com.ali.statusserver.StatusServerBootstrap.$VRi(StatusServerBootstrap.java)&lt;br /&gt;
at com.ali.statusserver.StatusServerBootstrap.&amp;lt;clinit&amp;gt;(StatusServerBootstrap.java)&lt;/p&gt;
&lt;p&gt;I believe if I could specify the port number for emma for each server I could run the servers concurrently under emma. Unless I missed something in the documentation there is no property that can be used to specify the port. &lt;/p&gt;
&lt;p&gt;This request seems similar to: 1280012 - but in that case it looks like the expectation is that servers will be running on different hosts&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add ability to get metadata using CtlProcessor</title><link href="https://sourceforge.net/p/emma/patches/8/" rel="alternate"/><published>2008-09-17T16:29:07Z</published><updated>2008-09-17T16:29:07Z</updated><author><name>Ricky Ng-Adam</name><uri>https://sourceforge.net/u/rngadam/</uri></author><id>https://sourceforge.net1fc7d9cdf34f455a3a4b3eb7924748fe1dabd50b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This enables the user to get metadata information without having to do offline instrumentation.&lt;/p&gt;
&lt;p&gt;The patch adds a new CtlProcessor RPC command, metadata.get, which contacts the remote EMMA and generates a coverage.em file.&lt;/p&gt;
&lt;p&gt;This is done using the following command:&lt;/p&gt;
&lt;p&gt;java -cp emma.jar emma ctl -connect $HOST:$PORT -command metadata.get&lt;/p&gt;
&lt;p&gt;This is followed by the existing command:&lt;/p&gt;
&lt;p&gt;java -cp emma.jar emma ctl -connect $HOST:$PORT -command coverage.get&lt;/p&gt;
&lt;p&gt;and the reporting command that takes both metadata and coverage information as input:&lt;/p&gt;
&lt;p&gt;java  -cp emma.jar emma report -r html -in coverage.em,coverage.ec -Dreport.out.file=coverage.html --sp [source paths]&lt;/p&gt;
&lt;p&gt;(metadata + coverage = session data -&amp;gt; report)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>allow filtering during report generation</title><link href="https://sourceforge.net/p/emma/patches/7/" rel="alternate"/><published>2007-03-12T15:17:20Z</published><updated>2007-03-12T15:17:20Z</updated><author><name>Arvind Srinivasan</name><uri>https://sourceforge.net/u/dnivra/</uri></author><id>https://sourceforge.net8af6debdd6dbe4c2dbf4ecfe93908bd8eb2660d4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch address RFE 1059959 - allow filtering during report generation. &lt;br /&gt;
&lt;a href="http://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1059959&amp;amp;group_id=108932&amp;amp;atid=651900"&gt;http://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1059959&amp;amp;group_id=108932&amp;amp;atid=651900&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The diff was generated against the trunk.&lt;/p&gt;
&lt;p&gt;With this patch, both &amp;lt;instr&amp;gt; and &amp;lt;report&amp;gt; can contain &amp;lt;filter&amp;gt; sub-elements. &lt;/p&gt;
&lt;p&gt;Both task implementations now use FilterCfg, so I moved the class from com.vladium.emma.instr to com.vladium.emma.ant. However, I wasn't able to 'cvs add' it in the new location and so the last part of the diff contains the file in its entirety.&lt;/p&gt;
&lt;p&gt;To apply the diff please truncate the attachment at "-------- FilterCfg.java moved from com.vladium.emma.instr --------------" and then apply the diff. Then you would need to put the new FilterCfg.java in the right place - com.vladium.emma.ant - and commit it.&lt;/p&gt;
&lt;p&gt;hth,&lt;br /&gt;
Arvind&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Maven 2 plugin contenders</title><link href="https://sourceforge.net/p/emma/patches/6/" rel="alternate"/><published>2006-05-03T22:50:17Z</published><updated>2006-05-03T22:50:17Z</updated><author><name>Felipe Leme</name><uri>https://sourceforge.net/u/felipeal/</uri></author><id>https://sourceforge.netc075b8dae383166978f821c81a2542c27cab8213</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here is an initial plugin submitted by Roger (user butenuth).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using Emma Eclipse Plugin with J2EE</title><link href="https://sourceforge.net/p/emma/patches/5/" rel="alternate"/><published>2006-02-20T20:42:16Z</published><updated>2006-02-20T20:42:16Z</updated><author><name/><uri>https://sourceforge.net</uri></author><id>https://sourceforge.net6e8118de8101c9201346239cfc70ab97cee141f6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ok, here we go,&lt;/p&gt;
&lt;p&gt;Remember my problem when enabling the plugin (and&lt;br /&gt;
losing the instrumented classes)? &lt;br /&gt;
That problem remains...&lt;br /&gt;
So I did a few modifications at the plugin code,&lt;br /&gt;
adding/changing actions.&lt;/p&gt;
&lt;p&gt;Requirements:&lt;br /&gt;
- emma-2.1.5320&lt;/p&gt;
&lt;p&gt;ResetDataAction:&lt;br /&gt;
- Remove coverage.ec&lt;br /&gt;
- Remove internal xml and html report&lt;br /&gt;
- Instrument the classes (not using&lt;br /&gt;
BuildRunner.startBuild()) &lt;/p&gt;
&lt;p&gt;CleanExistingCoverageData (new):&lt;br /&gt;
- Run ctl coverage.reset&lt;/p&gt;
&lt;p&gt;BuildReportAction&lt;br /&gt;
- Automatically dump the coverage data by ctl&lt;/p&gt;
&lt;p&gt;J2EE test:&lt;/p&gt;
&lt;p&gt;Configuration to Work:&lt;br /&gt;
- Project with emma-2.1.5320 in the classpath&lt;br /&gt;
- Project with emma.properties in the classpath (this&lt;br /&gt;
file can't be in Jboss deploy folder.&lt;br /&gt;
It will be just in classpath project).&lt;br /&gt;
emma.properties must contain the "rt.control = false"&lt;br /&gt;
property.&lt;br /&gt;
- The project classes must be in an exploded jar into&lt;br /&gt;
deploy folder.&lt;/p&gt;
&lt;p&gt;Classpath example:&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;
&amp;lt;classpath&amp;gt;&lt;br /&gt;
&amp;lt;classpathentry kind="src" path="implementacao/src/java"/&amp;gt;&lt;br /&gt;
&amp;lt;classpathentry output="target/exp-eclipse-only"&lt;br /&gt;
kind="src" path="target/exp-eclipse-only"/&amp;gt; &amp;lt;!-- This&lt;br /&gt;
is where emma.properties will be --&amp;gt;&lt;br /&gt;
&amp;lt;classpathentry kind="var"&lt;br /&gt;
path="MAVEN_REPO/emma/jars/emma-2.1.5320.jar"/&amp;gt;&lt;br /&gt;
&amp;lt;classpathentry kind="output"&lt;br /&gt;
path="systemparameters-geral-cactus.ear/systemparameters-geral-ejb-2.0.0.jar"/&amp;gt;&lt;br /&gt;
&amp;lt;/classpath&amp;gt;&lt;/p&gt;
&lt;p&gt;Steps to test:&lt;br /&gt;
- Enable Emma Plugin&lt;br /&gt;
- Use ResetDataAction&lt;br /&gt;
- Run JBOSS&lt;br /&gt;
- Run Tests&lt;br /&gt;
- BuildReportAction&lt;br /&gt;
- ShowCoverage&lt;br /&gt;
- CleanExistingCoverageData&lt;br /&gt;
- BuildReportAction&lt;br /&gt;
- Show Coverage&lt;/p&gt;
&lt;p&gt;The test worked fine, and I got the expected coverage.&lt;br /&gt;
So I just needed to use ResetDataAction,&lt;br /&gt;
BuildReportAction, CleanExistingCoverageData and&lt;br /&gt;
ShowReportAction &lt;br /&gt;
to do anything that I want with the plugin.&lt;/p&gt;
&lt;p&gt;- Summarizing -&lt;/p&gt;
&lt;p&gt;So what is the ideia?&lt;br /&gt;
Make a simple plugin!&lt;/p&gt;
&lt;p&gt;What we need to do to make the plugin works in&lt;br /&gt;
different enviroment?&lt;br /&gt;
Turn it very configurable.&lt;/p&gt;
&lt;p&gt;Interesting Options to add in Emma's Project property&lt;br /&gt;
(checkbox): &lt;br /&gt;
- Add jar to the classpath&lt;br /&gt;
- Get the coverage by dump&lt;/p&gt;
&lt;p&gt;Interesting feature to add to the Plugin:&lt;br /&gt;
- Use ctl (to dump, reset...)&lt;/p&gt;
&lt;p&gt;Interesting Modifications:&lt;br /&gt;
- A better way to instrument the code&lt;/p&gt;
&lt;p&gt;----------------------------------------------&lt;/p&gt;
&lt;p&gt;--Saraiva&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Eclipse plugin classpath addition</title><link href="https://sourceforge.net/p/emma/patches/4/" rel="alternate"/><published>2006-01-25T05:56:09Z</published><updated>2006-01-25T05:56:09Z</updated><author><name>Leo Bayer</name><uri>https://sourceforge.net/u/lfbayer/</uri></author><id>https://sourceforge.net82455ddb25d481c34263e69fdd502ae221012d08</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch will add the absolute path of the emma.jar&lt;br /&gt;
to a project's classpath without having to copy the jar&lt;br /&gt;
into the project.&lt;/p&gt;
&lt;p&gt;Using the absolute path is safe unless the user changes&lt;br /&gt;
the location of their eclipse install (although that in&lt;br /&gt;
itself would cause a mass of other problems).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add control flow information to metadata</title><link href="https://sourceforge.net/p/emma/patches/3/" rel="alternate"/><published>2005-12-28T11:02:35Z</published><updated>2005-12-28T11:02:35Z</updated><author><name>Mikhail Vladimirov</name><uri>https://sourceforge.net/u/mvladimirov/</uri></author><id>https://sourceforge.net2d841df9dbe4552fed9ebd3585c8a4c7aecd8e71</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch enable control flow information to be&lt;br /&gt;
collected during instrumentation stage.  This&lt;br /&gt;
information is available from metadata.  The following&lt;br /&gt;
public members added to metadata classes and interfaces:&lt;/p&gt;
&lt;p&gt;int IMetadataConstants.METHOD_NO_CONTROL_FLOW_TBL;&lt;/p&gt;
&lt;p&gt;int IMetadataConstants.METHOD_NO_CONTROL_FLOW_DATA;&lt;/p&gt;
&lt;p&gt;boolean IMetaData.hasControlFlowData ();&lt;/p&gt;
&lt;p&gt;boolean ClassDescriptor.hasControlFlowData ();&lt;/p&gt;
&lt;p&gt;boolean MethodDescriptor.hasControlFlowData ();&lt;/p&gt;
&lt;p&gt;int [][] MethodDescriptor.getControlFlow ();&lt;/p&gt;
&lt;p&gt;Control flow is int [][] array.  For each basic block&lt;br /&gt;
it holds an array of basic block ids, that can be&lt;br /&gt;
executed just after this basic block.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>bind rt port to a specific IP</title><link href="https://sourceforge.net/p/emma/patches/2/" rel="alternate"/><published>2005-09-01T19:00:44Z</published><updated>2005-09-01T19:00:44Z</updated><author><name>Idcmp</name><uri>https://sourceforge.net/u/idcmp/</uri></author><id>https://sourceforge.net92aa530945ab352354fa4c9f7ac67e28a2899d75</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch adds the following property:&lt;br /&gt;
rt.control.bind=hostname.example.com&lt;/p&gt;
&lt;p&gt;If set, the listening port for RT will be bound to that&lt;br /&gt;
hostname.  It's handy if you're running multiple&lt;br /&gt;
servers, each listening on different IPs, and you need&lt;br /&gt;
coverage turned on for all of them (like I do!)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>