Hi team,
I've been using Eclipse for some months and it's now my preferred IDE.
However, creating a Cocoon project under Eclipse isn't a piece of cake :
all source files depending on optional libraries fail to compile,
preventing Eclipse to properly build the project.
So, following Nicola Ken's idea, I wrote mock classes for libraries that
aren't included in Cocoon's CVS. So far so good, the Cocoon Eclipse
project now builds smoothly. But this reveals something that I'm not
comfortable with, even if I have lived with it for years : the Cocoon
build system does not compile all source files, depending on which
libraries that are actually present in the classpath.
This has several consequences :
- some source files are never compiled (how many of you have
phpservlet.jar in their classpath ?)
- uncompiled source files aren't included in the binary distribution
(neither in the jar nor in the javadoc), and are therefore totally
hidden to average users
- worst of all : we may release an official version that contains files
that don't even compile !
So I propose that we _remove all the conditional compilation stuff_ and
write mock classes where needed to ensure that _all_ source files are
always compiled.
Note that mock classes don't prevent the use of the real libraries :
jars in lib/local are placed before the mock classes in the classpath
and are therefore used, if present, to compile the source code.
I have most of this ready on my hard drive, but since this is a change
in the way we handle external dependencies, I'd like to have your
opinion before committing anything.
Thoughts ?
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
- Re: [Proposal] reconsidering external libraries managem... Sylvain Wallez
- Re: [Proposal] reconsidering external libraries ma... Nicola Ken Barozzi
- RE: [Proposal] reconsidering external librarie... John Morrison
- Re: [Proposal] reconsidering external libr... Sylvain Wallez
- Re: [Proposal] reconsidering external ... Stefano Mazzocchi
- Re: [Proposal] reconsidering external librarie... Sylvain Wallez
- Re: [Proposal] reconsidering external libr... Nicola Ken Barozzi
- Re: [Proposal] reconsidering external ... Sylvain Wallez
- Re: [Proposal] reconsidering external libraries ma... Stefano Mazzocchi
- Re: [Proposal] reconsidering external libraries ma... Litrik De Roy
- RE: [Proposal] reconsidering external libraries ma... Morrison, John