[ 
http://jira.codehaus.org/browse/MOJO-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130747#action_130747
 ] 

Benjamin Bentmann commented on MOJO-1096:
-----------------------------------------

This is simply a misconfiguration and is not related to this particular plugin:

bq. {{<stylesheet>${project.build.resources}/tranformation.xsl</stylesheet>}}

The expression project.build.resources refers to an object of type 
{{List<o.a.m.m.Resource>}}, it can't be used as a path. I'm not sure whether 
Maven currently provides a way in its expression syntax to reference elements 
from a collection. What Joerg wants would look more like:
{code:xml}
<stylesheet>${project.build.resources[0].directory}/tranformation.xsl</stylesheet>
{code}
But then, you're dependent on the ordering of the resources. Hence it seems 
advisable to just hard-code "src/main/resources".

> xml-maven-plugin should allow maven properties within the value of the 
> stylesheet property
> ------------------------------------------------------------------------------------------
>
>                 Key: MOJO-1096
>                 URL: http://jira.codehaus.org/browse/MOJO-1096
>             Project: Mojo
>          Issue Type: Wish
>          Components: xml
>            Reporter: Joerg Koenig
>            Assignee: Jochen Wiedmann
>            Priority: Minor
>
> The xml-maven-plugin should allow maven properties within the value of the 
> stylesheet property. 
> {code:xml}
> <execution>
>     <phase>process-resources</phase>
>     <id>Create transformed instance</id>
>     <goals>
>         <goal>transform</goal>
>     </goals>
>     <configuration>
>         <transformationSets>
>             <transformationSet>
>                 <dir>${project.build.directory}/dependency</dir>
>                 
> <stylesheet>${project.build.resources}/tranformation.xsl</stylesheet>
>             </transformationSet>
>         </transformationSets>
>     </configuration>
> </execution>
> {code}
> Currently the maven output shows the hash of the java object: 
> {{
> FEHLER:  'D:[EMAIL PROTECTED] (Das System kann den angegebenen Pfad nicht 
> finden)'
> }}

-- 
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