You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/09/19 22:46:10 UTC
[jira] Updated: (MAVEN-833) multiproject:site copies whole project tree, not just docs
The following issue has been updated:
Updater: Magne Rasmussen (mailto:magne.rasmussen@invenia.no)
Date: Fri, 19 Sep 2003 3:44 PM
Comment:
Sorry, didn't know when/how to attach patch file :)
Changes:
Attachment changed to plugin.jelly.patch.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-833&page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-833
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-833
Summary: multiproject:site copies whole project tree, not just docs
Type: Bug
Status: Unassigned
Priority: Major
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin-multiproject
Versions:
1.0-rc1
Assignee:
Reporter: Magne Rasmussen
Created: Fri, 19 Sep 2003 3:43 PM
Updated: Fri, 19 Sep 2003 3:44 PM
Environment: j2sdk1.4.2, Windows XP Pro
Description:
I have a main project catalog which contains sub-projects:
main-project
+- project.xml
+- sub-project-1
| +- project.xml
+- sub-project-2
+- project.xml
When trying to maven multiproject:site, the sub-project site goals run fine, but when the subproject docs are copied to main-project\target\multiproject\sub-project-n, the whole file-tree from main-project ends up being copied. This happens for every sub-project, so at sub-project-4 we are rapidly reaching 30.000 files! And a nesting level that Windows XP doesn't like at all!
The culprit seems to be the expression in multiproject\plugin.jelly;
reactorProject.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')
which returns (nothing ?). If this expression is replaced with
reactorProject.getContext().getVariable('maven.docs.dest')
With this patch, everything works as a charm.
Index: src/plugins-build/multiproject/plugin.jelly
===================================================================
RCS file: /home/cvspublic/maven/src/plugins-build/multiproject/plugin.jelly,v
retrieving revision 1.29
diff -u -r1.29 plugin.jelly
--- src/plugins-build/multiproject/plugin.jelly 12 Sep 2003 04:22:58 -0000 1.29
+++ src/plugins-build/multiproject/plugin.jelly 19 Sep 2003 20:09:30 -0000
@@ -80,11 +80,11 @@
<mkdir dir="${directory}"/>
<!--
${reactorProject.name} has docs directory
- ${reactorProject.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')}
+ ${reactorProject.getContext().getVariable('maven.docs.dest')}
needing to be copied
-->
<j:set var="fromDir"
- value="${reactorProject.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')}"/>
+ value="${reactorProject.getContext().getVariable('maven.docs.dest')}"/>
<copy toDir="${directory}">
<fileset dir="${fromDir}"/>
</copy>
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org