You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jan-Christopher Bals <ja...@googlemail.com> on 2006/10/18 15:07:08 UTC

custom archetype : filtering directory names

Hi!

I am currently building a custom archetype.

In addition to the replacement of ${keys} in files i need a way to 
rename files and directories.

Example:

archetype
|-- pom.xml
`-- src
     `-- main
         `-- resources
             |-- META-INF
             |   `-- archetype.xml
             `-- archetype-resources
                 |-- pom.xml
                 `-- src
                     `-- main
                         `-- java
                             `-- ${packagename}
                                 `--${classname}.java



Is there a way to achieve replacements like that?

best regards

Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: custom archetype : filtering directory names

Posted by Wendy Smoak <ws...@gmail.com>.
On 10/18/06, Paul Barry <ma...@paulbarry.com> wrote:
> Sorry to take this a little of topic, but what is ${keys}?  Is there
> documentation somewhere that says what replacements you can use in
> custom archetypes?

I think he just meant arbitrary replacement properties.  There is a
list of properties on the wiki:
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: custom archetype : filtering directory names

Posted by Paul Barry <ma...@paulbarry.com>.
Sorry to take this a little of topic, but what is ${keys}?  Is there
documentation somewhere that says what replacements you can use in
custom archetypes?

On 10/18/06, Jan-Christopher Bals <ja...@googlemail.com> wrote:
> Hi!
>
> I am currently building a custom archetype.
>
> In addition to the replacement of ${keys} in files i need a way to
> rename files and directories.
>
> Example:
>
> archetype
> |-- pom.xml
> `-- src
>      `-- main
>          `-- resources
>              |-- META-INF
>              |   `-- archetype.xml
>              `-- archetype-resources
>                  |-- pom.xml
>                  `-- src
>                      `-- main
>                          `-- java
>                              `-- ${packagename}
>                                  `--${classname}.java
>
>
>
> Is there a way to achieve replacements like that?
>
> best regards
>
> Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org