[ http://jira.codehaus.org/browse/MPPDF-31?page=all ]

Arnaud Heritier updated MPPDF-31:
---------------------------------

    Description: 
Fragment of text of project.xml:

<?xml version="1.0" encoding="UTF-8"?>

<project>

...

  <organization>

    <logo>/images/XXX.gif</logo>

  </organization>

  <logo>/images/YYY.gif</logo>

...

 

Fragment of text of maven.xml:

 

    <postGoal name="site">

        <attainGoal name="pdf"/>

    </postGoal>

 

In compile time the error is generated.

 

...

[java] [ERROR] Error while creating area : Error while recovering Image 
Informations (file:/images/YYY.gif) : /images/YYY.gif (No such file or 
directory)

...

 

As I understand the problem is connected with following code:

 

    <j:if test="not ${maven.pdf.projectLogo.startsWith('http://')}">

      <maven:makeAbsolutePath 

        var="maven.pdf.projectLogo" 

        basedir="${maven.xdoc.src}" 

        path="${maven.pdf.projectLogo}" 

        trim="true"/>

    </j:if>

 

 

<logo>/images/YYY.gif</logo> includes the path which is absolute. And so the 
prefix ${maven.xdoc.src}is not concatenated to the path. And so the file 
YYY.gif cannot be found.

 

I have "simplified" code and YYY.gif was found:

 

    <j:if test="${not maven.pdf.companyLogo.startsWith('http://')}">

      <j:set 
var="maven.pdf.companyLogo">${maven.xdoc.src}${maven.pdf.companyLogo}</j:set>

</j:if>

 

I think this problem can be resolved by more general way.

  was:
Fragment of text of project.xml:

<?xml version="1.0" encoding="UTF-8"?>

<project>

...

  <organization>

    <logo>/images/XXX.gif</logo>

  </organization>

  <logo>/images/YYY.gif</logo>

...

 

Fragment of text of maven.xml:

 

    <postGoal name="site">

        <attainGoal name="pdf"/>

    </postGoal>

 

In compile time the error is generated.

 

...

[java] [ERROR] Error while creating area : Error while recovering Image 
Informations (file:/images/YYY.gif) : /images/YYY.gif (No such file or 
directory)

...

 

As I understand the problem is connected with following code:

 

    <j:if test="not ${maven.pdf.projectLogo.startsWith('http://')}">

      <maven:makeAbsolutePath 

        var="maven.pdf.projectLogo" 

        basedir="${maven.xdoc.src}" 

        path="${maven.pdf.projectLogo}" 

        trim="true"/>

    </j:if>

 

 

<logo>/images/YYY.gif</logo> includes the path which is absolute. And so the 
prefix ${maven.xdoc.src}is not concatenated to the path. And so the file 
YYY.gif cannot be found.

 

I have "simplified" code and YYY.gif was found:

 

    <j:if test="${not maven.pdf.companyLogo.startsWith('http://')}">

      <j:set 
var="maven.pdf.companyLogo">${maven.xdoc.src}${maven.pdf.companyLogo}</j:set>

</j:if>

 

I think this problem can be resolved by more general way.

    Fix Version: 2.3.1
    Environment: 
Windows XP professional version 2002 and
Linux Red Hat / Maven 1.0.2 / maven-pdf-plugin-2.2.1

  was:
Windows XP professional version 2002 and
Linux Red Hat / Maven 1.0.2 / maven-pdf-plugin-2.2.1


> Cannot insert logo image to PDF
> -------------------------------
>
>          Key: MPPDF-31
>          URL: http://jira.codehaus.org/browse/MPPDF-31
>      Project: maven-pdf-plugin
>         Type: Bug
>     Versions: 2.2
>  Environment: Windows XP professional version 2002 and
> Linux Red Hat / Maven 1.0.2 / maven-pdf-plugin-2.2.1
>     Reporter: Oleg F. Vlasenko
>     Assignee: Arnaud Heritier
>      Fix For: 2.3.1
>  Attachments: plugin.jelly-logos.patch, project.properties.patch
>
>
> Fragment of text of project.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <project>
> ...
>   <organization>
>     <logo>/images/XXX.gif</logo>
>   </organization>
>   <logo>/images/YYY.gif</logo>
> ...
>  
> Fragment of text of maven.xml:
>  
>     <postGoal name="site">
>         <attainGoal name="pdf"/>
>     </postGoal>
>  
> In compile time the error is generated.
>  
> ...
> [java] [ERROR] Error while creating area : Error while recovering Image 
> Informations (file:/images/YYY.gif) : /images/YYY.gif (No such file or 
> directory)
> ...
>  
> As I understand the problem is connected with following code:
>  
>     <j:if test="not ${maven.pdf.projectLogo.startsWith('http://')}">
>       <maven:makeAbsolutePath 
>         var="maven.pdf.projectLogo" 
>         basedir="${maven.xdoc.src}" 
>         path="${maven.pdf.projectLogo}" 
>         trim="true"/>
>     </j:if>
>  
>  
> <logo>/images/YYY.gif</logo> includes the path which is absolute. And so the 
> prefix ${maven.xdoc.src}is not concatenated to the path. And so the file 
> YYY.gif cannot be found.
>  
> I have "simplified" code and YYY.gif was found:
>  
>     <j:if test="${not maven.pdf.companyLogo.startsWith('http://')}">
>       <j:set 
> var="maven.pdf.companyLogo">${maven.xdoc.src}${maven.pdf.companyLogo}</j:set>
> </j:if>
>  
> I think this problem can be resolved by more general way.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to