Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8143107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:00:41+00:00 2026-06-06T13:00:41+00:00

I build my project with Gradle 1.0 and I use the EMMA plugin for

  • 0

I build my project with Gradle 1.0 and I use the EMMA plugin for code coverage info. I would like to exclude certain files from the coverage report.

How can I achieve that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:00:44+00:00Added an answer on June 6, 2026 at 1:00 pm

    Are you including this Gradle script? I think you can exclude classes within your instrumentation definition (see example below). However, it doesn’t look like you can set the exclude pattern by using a convention property.

    ant.emma(enabled: 'true', verbosity:'info'){
        instr(merge:"true", destdir: emmaInstDir.absolutePath, instrpathref:"run.classpath",
              metadatafile: new File(emmaInstDir, '/metadata.emma').absolutePath) {
            instrpath {
                fileset(dir:sourceSets.main.output.classesDir.absolutePath, includes:"**/*.class", excludes:"**/Some*.class")
            }
        }
    }
    

    If I were you I’d try to fork the plugin, add a new field to EmmaPluginConvention that lets you set the exclude pattern and then use that variable in the instrpath definition. After changing the code and verifying that it works send a pull request to the author. I am sure he will incorporate your change.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I build an outside Gradle project from a Grails controller? Grails 2.0.0
This is my gradle build script. apply plugin: 'groovy' project.group = test.tree archivesBaseName =
Gradle outputs all the build sub-project generated files into buildSrc/build - I don't want
I’m trying to use Gradle to build a project that will run an imbedded
my build.gradle looks like: apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'application' ......
I have a multi-project C++ Gradle build, which produces a number of libraries and
I build a project in C#. From another project I have 5 DLLs. Is
Disclaimer: I'm fairly new with Gradle. I'm trying to build my project with Gradle
I am using gradle as project dependency manager but since I like netbeans better
I received the following gradle build file ( gae.gradle ) with a sample project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.