[ 
http://jira.codehaus.org/browse/MOJO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92675
 ] 

Mark Hobson commented on MOJO-735:
----------------------------------

I'd see it working similar to how Jerome detailed, although you wouldn't 
necessarily need to use a multimodule project - just one project to hold the 
XSL resources and another that brings it in as a xml-maven-plugin dependency.

The checkstyle plugin works by attempting to resolve the configLocation param 
as a resource, URL, or File, in that order.  It uses a plexus ResourceManager 
to do the hard work, so maybe it'd be worth reusing that?  Have a look at the 
configLocation field and getConfigFile in CheckstyleReport:

http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java

Also ResourceManager and the various ResourceLoaders in plexus:

https://svn.codehaus.org/plexus/plexus-components/trunk/plexus-resources/src/main/java/org/codehaus/plexus/resource/

> Allow XSL to be obtained from classloader resources
> ---------------------------------------------------
>
>                 Key: MOJO-735
>                 URL: http://jira.codehaus.org/browse/MOJO-735
>             Project: Mojo
>          Issue Type: Improvement
>          Components: xml
>            Reporter: Mark Hobson
>            Assignee: Jochen Wiedmann
>         Attachments: MOJO-735.patch
>
>
> It'd be handy to be able to use classloader resources when specifying the 
> XSL.  This would work in the same way as the maven-checkstyle-plugin's 
> configLocation param, which I believe utilises the plexus ResourceManager.
> This would allow XSLs to be brought in from external resource jars by 
> specifying an appropriate plugin dependency.

-- 
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 from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to