You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jerome Lacoste <je...@coffeebreaks.org> on 2004/04/14 05:59:57 UTC

[PATCH] allow xdoc:copy-user-resources to be called directly

Patch to apply on maven-1.0.rc2.


Problem:

maven.docs.src.available doesn't exist when one calls

  $MAVEN_HOME/bin/maven xdoc:copy-user-resources


With this patch I can now call $MAVEN_HOME/bin/maven
xdoc:copy-user-resources and the resources are copied.

This very simple patch works by moving the initialization of
maven.docs.src.available property into the init goal, making it
available to the copy-user-resources goal.

PS: I am not sure if I should create an issue for that small patch. If
so, can someone do it for me. I don't have a connection available these
days, and do most of my work offline.

Jerome (jerome@coffeebreaks.org)

Re: [PATCH] allow xdoc:copy-user-resources to be called directly

Posted by Jerome Lacoste <je...@coffeebreaks.org>.
On Tue, 2004-04-13 at 23:59, Jerome Lacoste wrote:
> Patch to apply on maven-1.0.rc2.
> 
> 
> Problem:
> 
> maven.docs.src.available doesn't exist when one calls
> 
>   $MAVEN_HOME/bin/maven xdoc:copy-user-resources
> 
> 
> With this patch I can now call $MAVEN_HOME/bin/maven
> xdoc:copy-user-resources and the resources are copied.
> 
> This very simple patch works by moving the initialization of
> maven.docs.src.available property into the init goal, making it
> available to the copy-user-resources goal.
> 
> PS: I am not sure if I should create an issue for that small patch. If
> so, can someone do it for me. I don't have a connection available these
> days, and do most of my work offline.

Another way to solve the problem is to copy the maven.docs.src.available
property initialization into the copy-user-resources goal
I say that because I saw that there are at least two goals which contain
the initialization of this property.

So either that or this patch has to be slightly reworked (so that other
goals that initialize the property gets also refactored).

Would appreciate any comments on the patch, as well as whether I should
create an issue in Jira.

Jerome


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org