Wich was a more beutifull implementation.. thanx for the tip Brett
/Kaare
On 09/03/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> The correct solution is probably to test whether the project's packaging
> has a language of Java (see javadoc:jar, for example). Yes, cobertura
> should have it (as should many others).
> - Brett
>
> Kaare Nilsen wrote:
> > Yo guys.
> >
> > I just got reported, and resolved, an issue in the aspectJ plugin
> > where the plugin is configured in the parent pom (packaging pom). The
> > guy that filed the issue stated in front in a mail to me that they had
> > simular problems with the cobertura plugin.
> > Well I resolved it in the aspectJ prlugin with the following code :
> >
> > public void execute()
> > throws MojoExecutionException
> > {
> > // exclude this :
> > if( "pom".endsWith( project.getPackaging() )
> > || "ear".endsWith( project.getPackaging() ) )
> > {
> > return;
> > }
> >
> >
> > Would you think that this also applies for the cobertura plugin ?
> > should we add simular code there ?
> >
> > Best regards
> > Kaare Nilsen
> >
>