Re: Centipede & multiple projects

Nicola Ken Barozzi <[email protected]>
Newsgroups gmane.comp.krysalis.user,gmane.comp.krysalis.devel
Organization Apache Software Foundation
Message-ID <[email protected]>
Adam Jack wrote, On 14/04/2003 17.43:
> I am attempting to build multiple projects in one module.xml via centipede,
> by using a separate centibiuld.xml per project. In the xxxx-centibuild.xml I
> have <project name="xxxx" which corresponds to a <project name="xxxx" in the
> module.xml.
> 
> 1) Do folks think this approach stands a chance? [I was hoping to then use
> Gump to launch various centipedes.]

I don't think so ATM. The Centipede multi-project in one module thing 
works only ATM for a single centibuild.l

> 2) Is this a good "long term" solution for centipede? Is this something
> centipede ought work towards? [If so, I'll ask some more questions, if not I
> won't bother.]

Hmmm...

> Of course (or I wouldn't be writing) it isn't working for me:
> 
> cent -f ant-centibuild.xml
> 	...
> 	      Project Name krysalis-ruper-ant
> 	...
>                 =====================================
>                    building  krysalis-ruper	<--- Why? First in module.xml?
                                                ^^^^^^^^^^^^^^^^^^^^^
                                                       Yes
>                 =====================================
> 	...
> BUILD FAILED
> java.util.NoSuchElementException
>         at
> org.apache.commons.jxpath.ri.EvalContext.next(EvalContext.java:168)

Something missing in the descriptor.

The problem with the current multi-project-in-module approach is that it 
uses only one centibuild file, which *starts* the process. Hence even if 
we make the multiproject system get the right buildfile, we still need 
to tell centipede which buildfile to start with, and which project. 
Bleah. :-P

So real multiproject builds should be done with Gump, that's all. What 
we have now is a short-circuit that works for one centibuild file and in 
the same module.

It's becoming IMHO more evident that the best thing, as we said some 
days ago, is to zap it and use an external system to drive multiproject 
builds.

If we want we can still do it with the code we have, with a new cent 
script that calls that code, but the best thing is to use Gump and 
that's all.

No?

-- 
Nicola Ken Barozzi                   [email protected]
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.