aheritier    2004/09/26 14:52:34

  Modified:    pdf/xdocs faq.fml
  Log:
  How to PDF + Multi-projects
  
  Revision  Changes    Path
  1.5       +27 -0     maven-plugins/pdf/xdocs/faq.fml
  
  Index: faq.fml
  ===================================================================
  RCS file: /home/cvs/maven-plugins/pdf/xdocs/faq.fml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- faq.fml   26 Sep 2004 21:44:56 -0000      1.4
  +++ faq.fml   26 Sep 2004 21:52:34 -0000      1.5
  @@ -28,6 +28,33 @@
           </ul>
         </answer>
       </faq>
  +    <faq id="how-use-multiproject">
  +      <question>How do I use the PDF Plugin with a multiproject ?</question>
  +      <answer>
  +      <p>To generate a PDF from documentations defined in several sub-projects, you 
must copy all the xdocs files from these projects.</p>
  +      <p>Here is an example on how to do it :</p>
  +     <source><![CDATA[ 
  +<attainGoal name="multiproject:site"/>
  +<maven:reactor 
  +  basedir="${basedir}" 
  +  postProcessing="true" 
  +  includes="**/project.xml" 
  +  collectOnly="true" 
  +  ignoreFailures="false" 
  +  collectionVar="multiprojects"/>
  +<!-- We copy the generated files to use them in the pdf -->
  +<j:forEach var="reactorProject" items="${multiprojects}">
  +  <j:set var="fromDir" 
value="${reactorProject.context.getVariable('maven.gen.docs')}"/>
  +  <ant:copy 
todir="${maven.build.dir}/pdf/${maven.multiproject.aggregateDir}${reactorProject.artifactId}">
  +    <ant:fileset dir="${fromDir}" force="true">
  +      <ant:include name="**/*.*"/>
  +    </ant:fileset>
  +  </ant:copy>
  +</j:forEach>
  +<attainGoal name="pdf"/>
  +]]></source>        
  +      </answer>
  +    </faq>    
       <faq id="how-images">
         <question>Which types of images can I use in my documents ?</question>
         <answer>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to