# HG changeset patch # User Gilles Duboscq # Date 1344401093 25200 # Node ID 472a648769e478d3abd76a03f3cdf68e29863261 # Parent afd2508528f54dfcc7a41612081dc3acddd22ffa better JaCoCo : only include com.oracle.graal.* and com.oracle.max.*, exclude com.oracle.graal.jtt.* diff -r afd2508528f5 -r 472a648769e4 mx/commands.py --- a/mx/commands.py Tue Aug 07 11:13:17 2012 -0700 +++ b/mx/commands.py Tue Aug 07 21:44:53 2012 -0700 @@ -577,15 +577,16 @@ if _jacoco == 'on' or _jacoco == 'append': jacocoagent = mx.library("JACOCOAGENT", True) # Exclude all compiler tests and snippets - excludes = ['com.oracle.graal.compiler.tests.*'] + excludes = ['com.oracle.graal.compiler.tests.*', 'com.oracle.graal.jtt.*'] for p in mx.projects(): excludes += _find_classes_with_annotations(p, None, ['@Snippet', '@ClassSubstitution'], includeInnerClasses=True) excludes += p.find_classes_with_matching_source_line(None, lambda line: 'JaCoCo Exclude' in line, includeInnerClasses=True) + includes = ['com.oracle.graal.*', 'com.oracle.max.*'] agentOptions = { 'append' : 'true' if _jacoco == 'append' else 'false', 'bootclasspath' : 'true', - 'includes' : 'com.oracle.*', + 'includes' : ':'.join(includes), 'excludes' : ':'.join(excludes), 'destfile' : 'jacoco.exec' }