On Dec 26, 2007 6:25 AM, aldana <[EMAIL PROTECTED]> wrote:

> Heinrich Nirschl wrote:
> >
> > No, the optional library may be needed for compiling. It can still be
> > optional if it is never loaded at runtime for a certain use case.
> >
> but how should someone know if a certain use case is not executed on runtime
> (to me that sounds more like a hint to dead code...). do you know a real
> maven2 project where this optional is used and makes sense?

The Shale test framework has classes that depend on HtmlUnit and
Cargo.  Those dependencies need to be on the classpath to compile the
framework itself, but they are marked optional in order to avoid
imposing them on all users of the test framework.   Depending on the
type of testing you're doing, you declare the additional dependencies
you need.

http://svn.apache.org/repos/asf/shale/framework/trunk/shale-test/pom.xml

-- 
Wendy

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

Reply via email to