[ http://jira.codehaus.org/browse/ARCHETYPE-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Maslov updated ARCHETYPE-191: --------------------------------------- Attachment: ReplaceFileNameToken_RegExp.patch patch changes {code} private String replaceFilenameTokens( String filePath, Context context ) {code} to use regexp Matcher for property values interpolation. e.g. prop1= 1 prop_2 = 2 prop3 = 3 pr_o_p4= 4 prop_PP= 5 {code} messages___prop1_____prop_2__prop3__pr_o_p4_____prop_PP__.properties >>> messages_1_2prop34_5.properties {code} patch made against trunk rev732308 > 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 > > Attachments: mytest-1.0.1.jar, mytest-1.0.1.pom, > ReplaceAnyContextPropertyEnhancement-v2.patch, > ReplaceAnyContextPropertyEnhancement.patch, ReplaceFileNameToken_RegExp.patch > > > 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