here's the problem:

we have a main project (multiproject type project) and then a whole bunch of
component projects. normally, the directory structure should look something
like this:

[parent]
--main
--a
--b

which means that i can just use:

maven.multiproject.basedir=..
maven.multiproject.excludes=main/project.xml

for the multiproject plugin, or 

    <maven:reactor
      basedir=".."
      includes="*/project.xml"
      excludes="main/project.xml"

for my  reactor.

the problem is that people often have multiple versions of the component
projects checked out (for working on production branches), which gives a
directory structure a bit more like this:

[parent]
--main
--a
--a-1.4
--b
--b-1.2
--b-1.3

so i wanted to be a little more explicit about which projects are included.
which i can just do like this i guess:

maven.multiproject.includes=a-1.4/project.xml,b-1.2/project.xml

or

    <maven:reactor
      basedir=".."
      includes="a-1.4/project.xml,b-1.2/project.xml"
      excludes="main/project.xml"

my original question was because i wanted to be able to do something like
this:

maven.project.a.basedir=a-1.4/project.xml
maven.project.b.basedir=b-1.2/project.xml

and then do a foreach through maven.project.${projectname}.basedir to build
up my reactor includes.

regards,
jamie.

> -----Original Message-----
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: 25 September 2003 23:40
> To: 'Maven Users List'
> Subject: RE: properties
> 
> 
> I'm not sure what you are trying to achieve. ${basedir} 
> should always be set
> to the executing project's directory.
> 
> - Brett
> 
> > -----Original Message-----
> > From: Jamie McCrindle [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, 25 September 2003 7:29 PM
> > To: Maven Users List
> > Subject: properties
> > 
> > 
> > hi,
> > 
> > i'd like to be able to specify the base directory for all of 
> > my sub projects in a main project and my initial thought was 
> > to do it something like this:
> > 
> > maven.project.myfirstproject.basedir=../myfirstproject
> > maven.project.mysecondproject.basedir=../mysecondproject
> > 
> > but it doesn't look like this is a common practice nor can i 
> > figure out how to handle it in jelly. anyone have any better ideas?
> > 
> > regards,
> > jamie.
> > 


________________________________________________________________________

This e-mail message (including any attachment) is intended only for the personal 
use of the recipient(s) named above. This message is confidential and may be 
legally privileged.  If you are not an intended recipient, you may not review, copy or 
distribute this message. If you have received this communication in error, please 
notify 
us immediately by e-mail and delete the original message.

Any views or opinions expressed in this message are those of the author only. 
Furthermore, this message (including any attachment) does not create any legally 
binding rights or obligations whatsoever, which may only be created by the exchange 
of hard copy documents signed by a duly authorised representative of Hutchison 
3G UK Limited.
________________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to