maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (ARCHETYPE-241) Filtering of directory name same as filenames
Date Fri, 06 Dec 2013 21:09:45 GMT

     [ https://jira.codehaus.org/browse/ARCHETYPE-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte updated ARCHETYPE-241:
-------------------------------------

    Description: 
Currently I have the following setup:

{noformat:title=target\\generated-sources\\archetype\\src\\main\\resources\\archetype-resources}
- __rootArtifactId__-test1
   - src
      - main
         - java
- __projectName__-test2
   - src
      - main
         - java
            - Test-__projectName__.java
               "This is ${projectName}!"
{noformat}
When I use this archetype with the required property "projectName" set to "myName" it generates:

{noformat}
- myArtifactId-test1
   - src
      - main
         - java
- __projectName__-test2
   - src
      - main
         - java
            - Test-myName.java
               "This is myName!"
{noformat}
This project builds as expected, but as you can see, the property is changed in all the filenames
(thanks to ARCHETYPE-191) and Velocity changes the property in the files, but the directory
isn't renamed. I would expect that the directory and module would also accept custom properties
besides the usual rootArtifactId?

  was:
Currently I have the following setup:

target\generated-sources\archetype\src\main\resources\archetype-resources:
- __rootArtifactId__-test1
   - src
      - main
         - java
- __projectName__-test2
   - src
      - main
         - java
            - Test-__projectName__.java
               "This is ${projectName}!"

When I use this archetype with the required property "projectName" set to "myName" it generates:

- myArtifactId-test1
   - src
      - main
         - java
- __projectName__-test2
   - src
      - main
         - java
            - Test-myName.java
               "This is myName!"

This project builds as expected, but as you can see, the property is changed in all the filenames
(thanks to ARCHETYPE-191) and Velocity changes the property in the files, but the directory
isn't renamed. I would expect that the directory and module would also accept custom properties
besides the usual rootArtifactId?

    
> Filtering of directory name same as filenames
> ---------------------------------------------
>
>                 Key: ARCHETYPE-241
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-241
>             Project: Maven Archetype
>          Issue Type: Improvement
>          Components: Generator
>    Affects Versions: 2.0-alpha-4
>            Reporter: Roy van Rijn
>            Priority: Minor
>
> Currently I have the following setup:
> {noformat:title=target\\generated-sources\\archetype\\src\\main\\resources\\archetype-resources}
> - __rootArtifactId__-test1
>    - src
>       - main
>          - java
> - __projectName__-test2
>    - src
>       - main
>          - java
>             - Test-__projectName__.java
>                "This is ${projectName}!"
> {noformat}
> When I use this archetype with the required property "projectName" set to "myName" it
generates:
> {noformat}
> - myArtifactId-test1
>    - src
>       - main
>          - java
> - __projectName__-test2
>    - src
>       - main
>          - java
>             - Test-myName.java
>                "This is myName!"
> {noformat}
> This project builds as expected, but as you can see, the property is changed in all the
filenames (thanks to ARCHETYPE-191) and Velocity changes the property in the files, but the
directory isn't renamed. I would expect that the directory and module would also accept custom
properties besides the usual rootArtifactId?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message