[ http://jira.codehaus.org/browse/ARCHETYPE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_125263 ]
Dominique Jean-Prost commented on ARCHETYPE-135: ------------------------------------------------ My use case is the following. I want to setup an archetype for my company in which I use spring. My spring config files are located in package dir. For instance : com \foo \spring.xml \spring2.xml I can generate spring.xml and spring2.xml in the correct dir using archetype-metadata.xml. That's ok. But in spring2.xml, I would like to have this : <beans> <import classpath:com/foo/spring.xml/> </beans> In this example, I need to get the ${package} variable transformed from the dot notation to to the slash notation. So that I could write the following in my spring2.xml template : <beans> <import classpath:${packageInPathFormat}/spring.xml/> </beans> > add a variabl containing package in a path format > ------------------------------------------------- > > Key: ARCHETYPE-135 > URL: http://jira.codehaus.org/browse/ARCHETYPE-135 > Project: Maven Archetype > Issue Type: Improvement > Affects Versions: 2.0-alpha-2 > Reporter: Dominique Jean-Prost > > Actually, there is a variable "package" than can be used in the file during > generation. > It could be great if there was another variable than contained the package in > a path format. Example : > package = com.foo > packageInPathFormat=com/foo > This new variable could be used in resources path. -- 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