[ http://jira.codehaus.org/browse/MCOBERTURA-20?page=comments#action_62255
]
Eivind Waaler commented on MCOBERTURA-20:
-----------------------------------------
I'm having this problem too. With the latest cvs version of the plugin. The
problem is that the ${project.reporting.outputDirectory} variable used in the
report mojo is relative (target/site), and should probably not be used for
anything but the report system.
On line 168:
task.setOutputDirectory( new File( outputDirectory ) );
If changed to:
task.setOutputDirectory( new File( project.getBasedir().getAbsolutePath() +
File.separator + outputDirectory ) );
It will work..
> Cobertura outputs to wrong directory in multi-project
> -----------------------------------------------------
>
> Key: MCOBERTURA-20
> URL: http://jira.codehaus.org/browse/MCOBERTURA-20
> Project: Maven 2.x Cobertura Plugin
> Type: Bug
> Versions: 2.0
> Reporter: Bjorn Beskow
> Assignee: Brett Porter
> Fix For: 2.0
> Attachments: fuelmaster.tar.gz, multiproject-report.patch
>
>
> When running Cobertura-plugin 2.0-SNAPSHOT on a parent project (using the
> supplied patch to work around the
> http://jira.codehaus.org/browse/MCOBERTURA-2 issue), all the output of the
> Report task executed for the sub projects ends up in the
> target/site/cobertura folder of the parent project.
> The attached patch solves this problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira