You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Trygve Laugstøl <tr...@codehaus.org> on 2005/08/18 13:28:24 UTC
Why do AbstractMavenReport depend on MavenProject
Hi
While looking at the latest JavaDoc issue I was looking around in the
JavadocReport class and noticed that it used the MavenProject all over.
The usage could easily be replaced with read-only expressions from the
project except for the AbstractMavenReport that actually requires an
method MavenProject getProject() to be implemented.
The only data read from the project is the name and url. So I wonder,
would anyone mind if I removed it and replaced it with two calls to
getProjectName() and getProjectUrl() ?
This would make is possible to be independent of the maven-project
artifact and should increase the reusability of at least the javadoc
report.
--
Trygve
Re: Why do AbstractMavenReport depend on MavenProject
Posted by Emmanuel Venisse <em...@venisse.net>.
Trygve Laugstøl wrote:
> Hi
>
> While looking at the latest JavaDoc issue I was looking around in the
> JavadocReport class and noticed that it used the MavenProject all over.
> The usage could easily be replaced with read-only expressions from the
> project except for the AbstractMavenReport that actually requires an
> method MavenProject getProject() to be implemented.
>
> The only data read from the project is the name and url. So I wonder,
> would anyone mind if I removed it and replaced it with two calls to
> getProjectName() and getProjectUrl() ?
it's the only two methods calls for interpolation, we have a todo in
AbstractMavenReport for interpolate all project.* properties
I'm +1 for remove the dependencies and replace it by this two calls if
we add an addProperty method (empty in AbstractMavenReport), plugins
developers will can override it if they need more property in report
generation.
>
> This would make is possible to be independent of the maven-project
> artifact and should increase the reusability of at least the javadoc
> report.
sure
Emmanuel
>
> --
> Trygve
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Why do AbstractMavenReport depend on MavenProject
Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Thu, Aug 18, 2005 at 11:10:59PM +1000, Brett Porter wrote:
> This will mean changing all the reports derived from it.
Yes it will, but we can be deprecated for now.
> Are you sure the reporting api doesn't use getProject() anywhere?
I'm not entirely sure what you're refering to, but this is an abstract
method in the AbstractMavenReport so it's only used by the abstract report
and it's sub-classes. It's not in the MavenReport interface.
--
Trygve
Re: Why do AbstractMavenReport depend on MavenProject
Posted by Brett Porter <br...@apache.org>.
This will mean changing all the reports derived from it.
Are you sure the reporting api doesn't use getProject() anywhere?
- Brett
Trygve Laugstøl wrote:
>Hi
>
>While looking at the latest JavaDoc issue I was looking around in the
>JavadocReport class and noticed that it used the MavenProject all over.
>The usage could easily be replaced with read-only expressions from the
>project except for the AbstractMavenReport that actually requires an
>method MavenProject getProject() to be implemented.
>
>The only data read from the project is the name and url. So I wonder,
>would anyone mind if I removed it and replaced it with two calls to
>getProjectName() and getProjectUrl() ?
>
>This would make is possible to be independent of the maven-project
>artifact and should increase the reusability of at least the javadoc
>report.
>
>--
>Trygve
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org