[ http://jira.codehaus.org/browse/ARCHETYPE-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147841#action_147841 ]
Brad Szabo commented on ARCHETYPE-191: -------------------------------------- Thanks for adding this valuable feature Raphaƫl! I just wanted to give an example of how this works (since I could not find an example anywhere else and it may help others). Files & directories which contain __artifactId__ or __rootArtifactId__ are replaced by the property values. Example Archetype file: example-archetype/src/main/resources/archetype-resources/module1/src/main/resources/__rootArtifactId__.properties Example Generated output (where -DartifactId=sample): sample/module1/src/main/resources/sample.properties > Ability to filter filenames (rename files) during project generation > -------------------------------------------------------------------- > > Key: ARCHETYPE-191 > URL: http://jira.codehaus.org/browse/ARCHETYPE-191 > Project: Maven Archetype > Issue Type: New Feature > Components: Generator > Affects Versions: 2.0-alpha-3 > Reporter: Wendy Smoak > Fix For: 2.0-alpha-4 > > > When generating a new project from an archetype, I need to filter not only > values within files, but the names of the files themselves. > For example, in .NET projects, the project files (.sln, .csproj) match the > name of the solution or project rather than having a fixed name like Maven's > pom.xml does. > Another user raised a similar issue on the mailing list, the ability to > filter in the name of Java source code files. > See: http://www.nabble.com/Archetype%2C-define-file-name-ts18430983.html -- 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