Hi Felipe,
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: jeudi 15 juillet 2004 19:42
> To: [EMAIL PROTECTED]
> Subject: [jira] Commented: (MPANNOUNCEMENT-11) [PATCH] Option to set
> different templates to be used as announcement
>
> The following comment has been added to this issue:
>
> Author: Felipe Leme
> Created: Thu, 15 Jul 2004 1:40 PM
> Body:
> > How is the following a problem?
>
> > Custom (user overriden):
> > path = ${basedir}/conf/myannouncement.jsl
>
> > Default:
> > path = ${plugin.resources}/announcement.jsl
>
> That's simple, I agree. My only concern is regarding multi-project: if I
> have many sub-projects with share the same announcement, I would like to
> define that property at the root level only(i.e., from where multi-project
> is called). Would ${basedir} in this case solve to the root's dir or to
> each sub-project being 'reacted'? If not, is there any other option or
> would I need to set a physical path? (Sorry for the RTFMish aspect of the
> question, but I'm not that familiar with multiproject yet).
>
I'm answering on the list now as this issue is turning into a discussion...
:-)
I don't think there's any relation with the multiproject here. If you wish
to share properties between multiple projects in Maven, you simply define it
in a top level project.properties file which gets inherited automatically
when you use the <extend> element in the child projects.
The properties are getting placed in the context of the project. They are
each resolved at runtime. Which means ${basedir} gets the right value.
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]