maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heritier Arnaud" <aherit...@axway.com>
Subject RE: cvs commit: maven-plugins/pdf/xdocs properties.xml
Date Mon, 26 Jan 2004 14:32:25 GMT
Ok, it's a shame nut however it is enough complicated to generate PDF files with static links
;-)

Thx for the commit

Arnaud

-----Message d'origine-----
De : Emmanuel Venisse [mailto:emmanuel@venisse.net]
Envoyé : lundi 26 janvier 2004 14:54
À : Maven Developers List
Objet : Re: cvs commit: maven-plugins/pdf/xdocs properties.xml


No, it isn't possible. We must use static filename.
I'll update navigation.xml when apache cvs will be up.

Emmanuel

----- Original Message ----- 
From: "Heritier Arnaud" <aheritier@axway.com>
To: "Maven Developers List" <dev@maven.apache.org>
Sent: Monday, January 26, 2004 12:34 PM
Subject: RE: cvs commit: maven-plugins/pdf/xdocs properties.xml


Hi Emmanuel.

Can you update the navigation.xml of the PDF Plugin.
I added a link to the PDF doc which is now invalid with the dynamic pdf
name.
Can we have a dynamic navigation.xml file with :
<item name="PDF Documentation" href="/${maven.pdf.pdfName}"/>

Thx

Arnaud

-----Message d'origine-----
De : evenisse@apache.org [mailto:evenisse@apache.org]
Envoyé : lundi 26 janvier 2004 10:16
À : maven-plugins-cvs@apache.org
Objet : cvs commit: maven-plugins/pdf/xdocs properties.xml


evenisse    2004/01/26 01:15:35

  Modified:    pdf      plugin.jelly plugin.properties
               pdf/xdocs properties.xml
  Log:
  Add pdf file name property.

  Revision  Changes    Path
  1.11      +4 -3      maven-plugins/pdf/plugin.jelly

  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven-plugins/pdf/plugin.jelly,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- plugin.jelly 26 Jan 2004 05:54:29 -0000 1.10
  +++ plugin.jelly 26 Jan 2004 09:15:35 -0000 1.11
  @@ -20,6 +20,7 @@
           <j:set var="companyLogo"
value="${docsPdf}/images/${pom.getPluginContext('maven-pdf-plugin').getVaria
ble('maven.pdf.companyLogo')}"/>
           <j:set var="imageDpi"
value="${pom.getPluginContext('maven-pdf-plugin').getVariable('maven.pdf.ima
geDpi')}"/>
           <j:set var="debug"
value="${pom.getPluginContext('maven-pdf-plugin').getVariable('maven.pdf.deb
ug')}"/>
  +        <j:set var="pdfName"
value="${pom.getPluginContext('maven-pdf-plugin').getVariable('maven.pdf.pdf
Name')}"/>
           <mkdir dir="${docsPdf}"/>
       </goal>
       <goal name="fo" prereqs="fo:fo" description="Generate XSL:FO project
documentation"/>
  @@ -79,7 +80,7 @@
           </copy>
       </goal>
       <goal name="pdf:pdf" description="Generate PDF project documentation"
prereqs="pdf:prepare">
  -        <echo>Generating ${docsPdf}/project.pdf ...</echo>
  +        <echo>Generating ${docsPdf}/${pdfName} ...</echo>
           <echo>Config file: ${docsPdf}/userconfig.xml</echo>
           <java classname="org.apache.fop.apps.Fop" fork="yes"
failonerror="true" maxmemory="500m">
               <classpath>
  @@ -97,9 +98,9 @@
               <arg value="-fo"/>
               <arg value="${docsPdf}/project.fo"/>
               <arg value="-pdf"/>
  -            <arg value="${docsPdf}/project.pdf"/>
  +            <arg value="${docsPdf}/${pdfName}"/>
               <sysproperty key="javax.xml.transform.TransformerFactory"
value="org.apache.xalan.processor.TransformerFactoryImpl"/>
           </java>
  -         <copy todir="${docsDest}" file="${docsPdf}/project.pdf"/>
  +         <copy todir="${docsDest}" file="${docsPdf}/${pdfName}"/>
       </goal>
   </project>



  1.6       +1 -0      maven-plugins/pdf/plugin.properties

  Index: plugin.properties
  ===================================================================
  RCS file: /home/cvs/maven-plugins/pdf/plugin.properties,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- plugin.properties 21 Jan 2004 09:14:44 -0000 1.5
  +++ plugin.properties 26 Jan 2004 09:15:35 -0000 1.6
  @@ -11,6 +11,7 @@
   maven.pdf.imageDpi=150
   maven.pdf.debug=false
   maven.pdf.navigationFile=navigation.xml
  +maven.pdf.pdfName=${pom.artifactId}.pdf
   # Reserved for future use...
   maven.pdf.cover.projectCompany=${pom.organization.name}
   maven.pdf.cover.projectName=${pom.name}



  1.3       +5 -0      maven-plugins/pdf/xdocs/properties.xml

  Index: properties.xml
  ===================================================================
  RCS file: /home/cvs/maven-plugins/pdf/xdocs/properties.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- properties.xml 26 Jan 2004 08:29:02 -0000 1.2
  +++ properties.xml 26 Jan 2004 09:15:35 -0000 1.3
  @@ -34,6 +34,11 @@
                       <td>The directory for generated xdocs. Defaults to
<code>${maven.build.dir}/generated-xdocs/</code>.</td>
                   </tr>
                   <tr>
  +                    <td>maven.pdf.pdfName</td>
  +                    <td>Yes</td>
  +                    <td>The name of pdf file.</b> Defaults to
<code>${pom.artifactId}.pdf</code>.</td>
  +                </tr>
  +                <tr>
                       <td>maven.pdf.confidential</td>
                       <td>Yes</td>
                       <td>Usage <b>not yet implemented.</b> Defaults to
<code>false</code>.</td>




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


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



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


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


Mime
View raw message