The following issue has been updated:

    Updater: dion gillard (mailto:[EMAIL PROTECTED])
       Date: Mon, 2 Aug 2004 7:28 PM
    Changes:
             Fix Version changed to 1.4
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MPMULTIPROJECT-23?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPMULTIPROJECT-23

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPMULTIPROJECT-23
    Summary: multiproject:site fails if a subproject's site could not be found
       Type: Improvement

     Status: Open
   Priority: Major

 Original Estimate: 15 minutes
 Time Spent: Unknown
  Remaining: 15 minutes

    Project: maven-multiproject-plugin
   Fix Fors:
             1.4

   Assignee: dion gillard
   Reporter: Oliver Noelle

    Created: Fri, 26 Mar 2004 5:30 AM
    Updated: Mon, 2 Aug 2004 7:28 PM
Environment: maven-rc-2, win2k

Description:
When a subproject could not build its site, the goal multiproject:site fails due to 
the fact that it can not find the directory to copy over to maven.docs.dest.

I don't know whether this is normally the desired behaviour, for our context we would 
like to have the site generated as far as it is possible, and not make a single site 
problem to fail the multiproject site goal.

Possible workaround:
I added a line to check for the existence of the index.html file in the 
maven.docs.dest dir of the subproject. If this file does not exist, it skips the copy 
goal which would fail.

Code snippet, see the comment and 2 lines added:

      <!-- copy each project over into ${maven.docs.dest} -->
      <j:forEach var="reactorProject" items="${reactorProjects}">
        <!-- note this is the same name as is generated in the 
navigation-aggregate.xml -->
        <j:set var="directory" 
value="${maven.docs.dest}/${maven.multiproject.aggregateDir}${reactorProject.artifactId}"/>
        <mkdir dir="${directory}"/>
        <!--
        ${reactorProject.name} has docs directory
        ${reactorProject.context.getVariable('maven.docs.dest')}
        needing to be copied
        -->
        <j:set var="fromDir"
          value="${reactorProject.context.getVariable('maven.docs.dest')}"/>
        <!-- the following line added as a check -->
        <util:available file="${fromDir}/index.html">
          <copy toDir="${directory}">
            <fileset dir="${fromDir}"/>
          </copy>
        </util:available>
      </j:forEach>





---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to