You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ah...@apache.org on 2005/10/02 10:48:01 UTC
svn commit: r293081 - in /maven/maven-1/plugins/trunk/pdf: plugin.jelly
xdocs/changes.xml
Author: aheritier
Date: Sun Oct 2 01:47:53 2005
New Revision: 293081
URL: http://svn.apache.org/viewcvs?rev=293081&view=rev
Log:
MPPDF-47 : An error occurs if the project logo or the company logo aren't defined.
Modified:
maven/maven-1/plugins/trunk/pdf/plugin.jelly
maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml
Modified: maven/maven-1/plugins/trunk/pdf/plugin.jelly
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf/plugin.jelly?rev=293081&r1=293080&r2=293081&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pdf/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/pdf/plugin.jelly Sun Oct 2 01:47:53 2005
@@ -174,12 +174,16 @@
<arg value="-PARAM"/>
<arg value="coverDate"/>
<arg value="${maven.pdf.cover.date}"/>
- <arg value="-PARAM"/>
- <arg value="companyLogo"/>
- <arg value="${maven.pdf.companyLogo}"/>
- <arg value="-PARAM"/>
- <arg value="projectLogo"/>
- <arg value="${maven.pdf.projectLogo}"/>
+ <j:if test="${not empty(maven.pdf.companyLogo)}">
+ <arg value="-PARAM"/>
+ <arg value="companyLogo"/>
+ <arg value="${maven.pdf.companyLogo}"/>
+ </j:if>
+ <j:if test="${not empty(maven.pdf.projectLogo)}">
+ <arg value="-PARAM"/>
+ <arg value="projectLogo"/>
+ <arg value="${maven.pdf.projectLogo}"/>
+ </j:if>
<arg value="-PARAM"/>
<arg value="imageDpi"/>
<arg value="${maven.pdf.imageDpi}"/>
Modified: maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml?rev=293081&r1=293080&r2=293081&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml Sun Oct 2 01:47:53 2005
@@ -25,6 +25,7 @@
</properties>
<body>
<release version="2.5-SNAPSHOT" date="in SVN">
+ <action dev="aheritier" type="fix" issue="MPPDF-47">An error occurs if the project logo or the company logo aren't defined.</action>
<action dev="ltheussl" type="fix" issue="MPPDF-37">Page numbering not correct with more than 10 items in menu.</action>
<action dev="ltheussl" type="add" issue="MPPDF-48">New goal <code>pdf:navigation-validate</code> to validate the pdf navigation file.</action>
<action dev="ltheussl" type="fix" issue="MPPDF-50">Fix <code>maven.pdf.cover.projectCompany</code>.</action>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: svn commit: r293081 - in /maven/maven-1/plugins/trunk/pdf: plugin.jelly xdocs/changes.xml
Posted by Arnaud HERITIER <ah...@gmail.com>.
Yes, it's probably better
I'll do it for each parameter to be sure to avoid this problem.
Arnaud
> -----Message d'origine-----
> De : Lukas Theussl [mailto:ltheussl@apache.org]
> Envoyé : dimanche 2 octobre 2005 18:51
> À : Maven Developers List
> Objet : Re: svn commit: r293081 - in
> /maven/maven-1/plugins/trunk/pdf: plugin.jelly xdocs/changes.xml
>
>
> Shouldn't we do the same test for all the other properties
> that might not be defined in the pom?
> Eg, currentVersion, organization.name, name and artifactId?
>
> -Lukas
>
>
> aheritier@apache.org wrote:
>
> >Author: aheritier
> >Date: Sun Oct 2 01:47:53 2005
> >New Revision: 293081
> >
> >URL: http://svn.apache.org/viewcvs?rev=293081&view=rev
> >Log:
> >MPPDF-47 : An error occurs if the project logo or the
> company logo aren't defined.
> >
> >Modified:
> > maven/maven-1/plugins/trunk/pdf/plugin.jelly
> > maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml
> >
> >Modified: maven/maven-1/plugins/trunk/pdf/plugin.jelly
> >URL:
> >http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf
> /plugin.je
> >lly?rev=293081&r1=293080&r2=293081&view=diff
> >=============================================================
> ==========
> >=======
> >--- maven/maven-1/plugins/trunk/pdf/plugin.jelly (original)
> >+++ maven/maven-1/plugins/trunk/pdf/plugin.jelly Sun Oct 2 01:47:53
> >+++ 2005
> >@@ -174,12 +174,16 @@
> > <arg value="-PARAM"/>
> > <arg value="coverDate"/>
> > <arg value="${maven.pdf.cover.date}"/>
> >- <arg value="-PARAM"/>
> >- <arg value="companyLogo"/>
> >- <arg value="${maven.pdf.companyLogo}"/>
> >- <arg value="-PARAM"/>
> >- <arg value="projectLogo"/>
> >- <arg value="${maven.pdf.projectLogo}"/>
> >+ <j:if test="${not empty(maven.pdf.companyLogo)}">
> >+ <arg value="-PARAM"/>
> >+ <arg value="companyLogo"/>
> >+ <arg value="${maven.pdf.companyLogo}"/>
> >+ </j:if>
> >+ <j:if test="${not empty(maven.pdf.projectLogo)}">
> >+ <arg value="-PARAM"/>
> >+ <arg value="projectLogo"/>
> >+ <arg value="${maven.pdf.projectLogo}"/>
> >+ </j:if>
> > <arg value="-PARAM"/>
> > <arg value="imageDpi"/>
> > <arg value="${maven.pdf.imageDpi}"/>
> >
> >Modified: maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml
> >URL:
> >http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf
> /xdocs/cha
> >nges.xml?rev=293081&r1=293080&r2=293081&view=diff
> >=============================================================
> ==========
> >=======
> >--- maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml (original)
> >+++ maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml Sun Oct 2
> >+++ 01:47:53 2005
> >@@ -25,6 +25,7 @@
> > </properties>
> > <body>
> > <release version="2.5-SNAPSHOT" date="in SVN">
> >+ <action dev="aheritier" type="fix" issue="MPPDF-47">An error
> >+ occurs if the project logo or the company logo aren't
> >+ defined.</action>
> > <action dev="ltheussl" type="fix"
> issue="MPPDF-37">Page numbering not correct with more than 10
> items in menu.</action>
> > <action dev="ltheussl" type="add"
> issue="MPPDF-48">New goal
> <code>pdf:navigation-validate</code> to validate the pdf
> navigation file.</action>
> > <action dev="ltheussl" type="fix" issue="MPPDF-50">Fix
> > <code>maven.pdf.cover.projectCompany</code>.</action>
> >
> >
>
>
> ---------------------------------------------------------------------
> 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
Re: svn commit: r293081 - in /maven/maven-1/plugins/trunk/pdf: plugin.jelly
xdocs/changes.xml
Posted by Lukas Theussl <lt...@apache.org>.
Shouldn't we do the same test for all the other properties that might
not be defined in the pom?
Eg, currentVersion, organization.name, name and artifactId?
-Lukas
aheritier@apache.org wrote:
>Author: aheritier
>Date: Sun Oct 2 01:47:53 2005
>New Revision: 293081
>
>URL: http://svn.apache.org/viewcvs?rev=293081&view=rev
>Log:
>MPPDF-47 : An error occurs if the project logo or the company logo aren't defined.
>
>Modified:
> maven/maven-1/plugins/trunk/pdf/plugin.jelly
> maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml
>
>Modified: maven/maven-1/plugins/trunk/pdf/plugin.jelly
>URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf/plugin.jelly?rev=293081&r1=293080&r2=293081&view=diff
>==============================================================================
>--- maven/maven-1/plugins/trunk/pdf/plugin.jelly (original)
>+++ maven/maven-1/plugins/trunk/pdf/plugin.jelly Sun Oct 2 01:47:53 2005
>@@ -174,12 +174,16 @@
> <arg value="-PARAM"/>
> <arg value="coverDate"/>
> <arg value="${maven.pdf.cover.date}"/>
>- <arg value="-PARAM"/>
>- <arg value="companyLogo"/>
>- <arg value="${maven.pdf.companyLogo}"/>
>- <arg value="-PARAM"/>
>- <arg value="projectLogo"/>
>- <arg value="${maven.pdf.projectLogo}"/>
>+ <j:if test="${not empty(maven.pdf.companyLogo)}">
>+ <arg value="-PARAM"/>
>+ <arg value="companyLogo"/>
>+ <arg value="${maven.pdf.companyLogo}"/>
>+ </j:if>
>+ <j:if test="${not empty(maven.pdf.projectLogo)}">
>+ <arg value="-PARAM"/>
>+ <arg value="projectLogo"/>
>+ <arg value="${maven.pdf.projectLogo}"/>
>+ </j:if>
> <arg value="-PARAM"/>
> <arg value="imageDpi"/>
> <arg value="${maven.pdf.imageDpi}"/>
>
>Modified: maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml
>URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml?rev=293081&r1=293080&r2=293081&view=diff
>==============================================================================
>--- maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml (original)
>+++ maven/maven-1/plugins/trunk/pdf/xdocs/changes.xml Sun Oct 2 01:47:53 2005
>@@ -25,6 +25,7 @@
> </properties>
> <body>
> <release version="2.5-SNAPSHOT" date="in SVN">
>+ <action dev="aheritier" type="fix" issue="MPPDF-47">An error occurs if the project logo or the company logo aren't defined.</action>
> <action dev="ltheussl" type="fix" issue="MPPDF-37">Page numbering not correct with more than 10 items in menu.</action>
> <action dev="ltheussl" type="add" issue="MPPDF-48">New goal <code>pdf:navigation-validate</code> to validate the pdf navigation file.</action>
> <action dev="ltheussl" type="fix" issue="MPPDF-50">Fix <code>maven.pdf.cover.projectCompany</code>.</action>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org