You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "badqiu (JIRA)" <ji...@codehaus.org> on 2010/11/07 15:19:03 UTC

[jira] Created: (ARCHETYPE-348) file path can ref variables for generate filename.

file path can ref variables for generate filename.
--------------------------------------------------

                 Key: ARCHETYPE-348
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-348
             Project: Maven Archetype
          Issue Type: New Feature
          Components: Archetypes
    Affects Versions: 2.x
            Reporter: badqiu


support filepath ref variable. this is useful for generate filepath or filename.

example:

variables:
package: com.company.project
packagePath: com\company\project
artifactId: helloworld
version: 1.0

filepath1:  ${packagePath}\${artifactId}-resource.xml
output1: com\company\project\helloworld-resource.xml

filepath2:  ${version}\${artifactId}-resource.xml
output2: 1.0\helloworld-resource.xml

filepath3: ${packagePath}\web\filters\ExampleFilter.java
output3: com\company\project\web\filters\ExampleFilter.java

-- 
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: (ARCHETYPE-348) file path can ref variables for generate filename.

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/ARCHETYPE-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed ARCHETYPE-348.
-----------------------------------

    Resolution: Not A Bug
      Assignee: Herve Boutemy

the feature is already there: the syntax for proprties replacement in filenames is not ${propertyName} but __propertyName__

so you should write __packageInPathFormat__/__artifactId__-resource.xml

> file path can ref variables for generate filename.
> --------------------------------------------------
>
>                 Key: ARCHETYPE-348
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-348
>             Project: Maven Archetype
>          Issue Type: New Feature
>          Components: Archetypes
>    Affects Versions: 2.1
>            Reporter: badqiu
>            Assignee: Herve Boutemy
>
> support filepath ref variable. this is useful for generate filepath or filename.
> example:
> variables:
> package: com.company.project
> packagePath: com\company\project
> artifactId: helloworld
> version: 1.0
> filepath1:  ${packagePath}\${artifactId}-resource.xml
> output1: com\company\project\helloworld-resource.xml
> filepath2:  ${version}\${artifactId}-resource.xml
> output2: 1.0\helloworld-resource.xml
> filepath3: ${packagePath}\web\filters\ExampleFilter.java
> output3: com\company\project\web\filters\ExampleFilter.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira