You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Roy van Rijn (JIRA)" <ji...@codehaus.org> on 2009/04/21 22:07:44 UTC

[jira] Created: (ARCHETYPE-241) Filtering of directory name same as filenames

Filtering of directory name same as filenames
---------------------------------------------

                 Key: ARCHETYPE-241
                 URL: http://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:

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?

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