Hi Luciano, as soon as my just crashed mcbook works again, I'll have a look at your issue. At the moment my dev environment is very limited. regards, René
Am Di, 1.03.2011, 17:58, schrieb koevet2: > Hi, > I'm working with the > http://docs.codehaus.org/display/GRADLE/Plugins#Plugins-Emmaplugin Emma > plugin and I need to extend it a bit. > > https://github.com/breskeby/gradleplugins/blob/master/emmaPlugin/emma.gra > dle Here is the link to the plugin's source. > > > The plugin doesn't allow to specify a "filter" property to filter out > certain classes from the code coverage analysis. > > I have added a new "emmaFilter" property to the plugin and the variable > gets initialized with the value of an "emmafilter" project property: > > class EmmaPluginConvention { ... > def emmaFilter; > > EmmaPluginConvention(Project project){ > ... > emmaFilter = "${project.emmafilter}" > > test{ ... > // use the emmaFilter property... > > > My project is composed of several subprojects. > In the "main" build.gradle file I have added the property: > > > emmafilter = "+com*" // instrument everything > > In the subprojects, I want to be able to change the classes to analyze: > > > subproject1: > emmafilter = "+com.filter.me*" subproject2: > emmafilter = "+com.filter.me.more*" > > > The problem arises when I try to run the "test" task for, for instance, > subproject2. The emmafilter property doesn't get "overridden" and the value > of the variable is always "´+com*" (the value specified in the "super" > build file). > > I have never looked into developing a plugin so it may be that I'm > completely missing something in the way plugins work. > > Thanks > Luciano > > > > -- > View this message in context: > http://gradle.1045684.n5.nabble.com/Extending-the-emma-plugin-and-general > -property-inheritance-question-tp3405312p3405312.html > Sent from the gradle-user mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > > http://xircles.codehaus.org/manage_email > > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
