You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Goldhahn (JIRA)" <ji...@codehaus.org> on 2007/01/09 15:54:21 UTC
[jira] Created: (DOXIA-92) cannot load images in APT files
cannot load images in APT files
-------------------------------
Key: DOXIA-92
URL: http://jira.codehaus.org/browse/DOXIA-92
Project: doxia
Issue Type: Bug
Reporter: Martin Goldhahn
Priority: Critical
I want to render an APT file that I use in my site as a PDF file.
Maven's site plugin finds the image because it is located in
src/site/resources. It seams that this path is not added to doxia's
classpath. Thus it cannot find the image.
How do I tell the doxia-maven-plugin that it should search the resources
folder as well?
--
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
[jira] Closed: (DOXIA-92) cannot load images in APT files
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/DOXIA-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukas Theussl closed DOXIA-92.
------------------------------
Assignee: Lukas Theussl
Resolution: Duplicate
Fix Version/s: (was: 1.0)
Superceded by DOXIA-118.
> cannot load images in APT files
> -------------------------------
>
> Key: DOXIA-92
> URL: http://jira.codehaus.org/browse/DOXIA-92
> Project: doxia
> Issue Type: Bug
> Reporter: Martin Goldhahn
> Assignee: Lukas Theussl
> Priority: Critical
> Attachments: DoxiaRenderBooksMojo.patch, ITextSink.patch
>
>
> I want to render an APT file that I use in my site as a PDF file.
> Maven's site plugin finds the image because it is located in
> src/site/resources. It seams that this path is not added to doxia's
> classpath. Thus it cannot find the image.
> How do I tell the doxia-maven-plugin that it should search the resources
> folder as well?
--
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
[jira] Updated: (DOXIA-92) cannot load images in APT files
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/DOXIA-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated DOXIA-92:
------------------------------
Fix Version/s: 1.0
Patch attached: Yes
> cannot load images in APT files
> -------------------------------
>
> Key: DOXIA-92
> URL: http://jira.codehaus.org/browse/DOXIA-92
> Project: doxia
> Issue Type: Bug
> Reporter: Martin Goldhahn
> Priority: Critical
> Fix For: 1.0
>
> Attachments: DoxiaRenderBooksMojo.patch, ITextSink.patch
>
>
> I want to render an APT file that I use in my site as a PDF file.
> Maven's site plugin finds the image because it is located in
> src/site/resources. It seams that this path is not added to doxia's
> classpath. Thus it cannot find the image.
> How do I tell the doxia-maven-plugin that it should search the resources
> folder as well?
--
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
[jira] Commented: (DOXIA-92) cannot load images in APT files
Posted by "Martin Goldhahn (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/DOXIA-92?page=comments#action_84507 ]
Martin Goldhahn commented on DOXIA-92:
--------------------------------------
I figured out two solutions to the problem:
1. Use the ITextSink.setClassLoader(ClassLoader) function
2. set a new Thread.contextClassLoader in the DoxiaRenderBooksMojo and allow the Thread.contextClassLoader to load the image, a new config parameter is added to the Mojo
The first alternative requires more knowledge of the inner working of maven than I have. For the second solution I add two patches: ITextSink.patch from the doxia-module-itext project and DoxiaRendererBooksMojo from the doxia-maven-plugin project
> cannot load images in APT files
> -------------------------------
>
> Key: DOXIA-92
> URL: http://jira.codehaus.org/browse/DOXIA-92
> Project: doxia
> Issue Type: Bug
> Reporter: Martin Goldhahn
> Priority: Critical
>
> I want to render an APT file that I use in my site as a PDF file.
> Maven's site plugin finds the image because it is located in
> src/site/resources. It seams that this path is not added to doxia's
> classpath. Thus it cannot find the image.
> How do I tell the doxia-maven-plugin that it should search the resources
> folder as well?
--
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
[jira] Updated: (DOXIA-92) cannot load images in APT files
Posted by "Martin Goldhahn (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/DOXIA-92?page=all ]
Martin Goldhahn updated DOXIA-92:
---------------------------------
Attachment: ITextSink.patch
DoxiaRenderBooksMojo.patch
See my previous comment
> cannot load images in APT files
> -------------------------------
>
> Key: DOXIA-92
> URL: http://jira.codehaus.org/browse/DOXIA-92
> Project: doxia
> Issue Type: Bug
> Reporter: Martin Goldhahn
> Priority: Critical
> Attachments: DoxiaRenderBooksMojo.patch, ITextSink.patch
>
>
> I want to render an APT file that I use in my site as a PDF file.
> Maven's site plugin finds the image because it is located in
> src/site/resources. It seams that this path is not added to doxia's
> classpath. Thus it cannot find the image.
> How do I tell the doxia-maven-plugin that it should search the resources
> folder as well?
--
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