Re: Dynamically generating artefact contents

2012-07-02 Thread Hervé BOUTEMY
filtered content is interpreted with Velocity perhaps adding a special utility object in Velocity context could do the job, like StringUtils as defined in doxia-site-renderer context [1] could definetely be useful to add these utilities in Archetype's Velocity context. Please create a jira issu

Re: Dynamically generating artefact contents

2012-07-02 Thread Jörg Schaible
Hi Jochen, you may write an own plugin. Similar code must exist in the build-helper plugin, where you can inject e.g. the maven version into a property or parts of the artifact version info separate properties. Regards, Jörg Jochen Wiedmann wrote: > No suggestions? > > On Wed, Jun 13, 2012 a

Re: Dynamically generating artefact contents

2012-07-02 Thread Jochen Wiedmann
No suggestions? On Wed, Jun 13, 2012 at 12:18 PM, Jochen Wiedmann wrote: > On Wed, Jun 13, 2012 at 10:46 AM, Belhadj abdessalem > wrote: >> what would you mean *shortName would be an attribute that's derived from >> the artifact-ID ?* > > Just to give an example: archetype-foo -> archetypeFoo

Re: Dynamically generating artefact contents

2012-06-13 Thread Jochen Wiedmann
On Wed, Jun 13, 2012 at 10:46 AM, Belhadj abdessalem wrote: > what would you mean  *shortName would be an attribute that's derived from > the artifact-ID   ?* Just to give an example: archetype-foo -> archetypeFoo. -- In other words: what could be seen as a socially debilitating failure of cha

Re: Dynamically generating artefact contents

2012-06-13 Thread Jochen Wiedmann
On Wed, Jun 13, 2012 at 11:27 AM, John Patrick wrote: > Additionally how would you be using these generated attributes? > > In plugins? > Filtering files? > Other? Let's assume for filtering files, seems to be the easiest. I'd appreciate more complex posssibilities, though. -- In other words:

Re: Dynamically generating artefact contents

2012-06-13 Thread John Patrick
Additionally how would you be using these generated attributes? In plugins? Filtering files? Other? On 13 June 2012 09:46, Belhadj abdessalem wrote: > what would you mean  *shortName would be an attribute that's derived from > the artifact-ID   ?* > > 2012/6/13 Jochen Wiedmann > >> Hi, >> >> I'

Re: Dynamically generating artefact contents

2012-06-13 Thread Belhadj abdessalem
what would you mean *shortName would be an attribute that's derived from the artifact-ID ?* 2012/6/13 Jochen Wiedmann > Hi, > > I've got a need to generate several attributes of an artefact > dynamically. For example, I'd like to be able to use something like > > ${shortName} > > where shor