[ 
http://jira.codehaus.org/browse/ARCHETYPE-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260559#action_260559
 ] 

Earl Baugh edited comment on ARCHETYPE-191 at 3/17/11 10:42 AM:
----------------------------------------------------------------

I'm seeing that this behavior doesn't properly work when trying to rename the 
"top" level directory under the archetype-resources directory, at least for 
multi module projects.
It seems that the replacement strategy gets confused... This first line, it 
shows that "test" (the variable value has been replaced) but velocity doesn't 
know how to reference it or the like. The line in the file was <module 
id="${rootArtifactId}" dir="__rootArtifactId__" >.  </i>The dir in the 
archtype-resources is named __rootArtifactId__, so that's right, and from the 
below it replaced the value correctly.

[ERROR] ResourceManager : unable to find resource 
'archetype-resources/test/pom.xml' in any resource loader.
[ERROR] org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Error 
merging velocity templates: Unable to find resource 
'archetype-resources/test/pom.xml'

Should I open a new issue on this?

      was (Author: ebaugh):
    I'm seeing that this behavior doesn't properly work when trying to rename 
the "top" level directory under the archetype-resources directory, at least for 
multi module projects.
It seems that the replacement strategy gets confused... This first line, it 
shows that "test" (the variable value has been replaced) but velocity doesn't 
know how to reference it or the like. The line in the file was <module 
id="${rootArtifactId}" dir="__rootArtifactId__" >.  The dir in the 
archtype-resources is named __rootArtifactId__, so that's right, and from the 
below it replaced the value correctly.

[ERROR] ResourceManager : unable to find resource 
'archetype-resources/test/pom.xml' in any resource loader.
[ERROR] org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Error 
merging velocity templates: Unable to find resource 
'archetype-resources/test/pom.xml'

Should I open a new issue on this?
  
> 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

        

Reply via email to