directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan D. Cabrera" <...@toolazydogs.com>
Subject RE: General question regarding dependencies
Date Sun, 05 Sep 2004 13:27:45 GMT


> -----Original Message-----
> From: Stephen McConnell [mailto:mcconnell@apache.org]
> 
> > -----Original Message-----
> > From: Alex Karasulu [mailto:aok123@bellsouth.net]
> >
> > Hi,
> >
> > Guys I have a single class that a (maven) project depends on in
> commons-
> > lang.  Generally I use commons-lang all over the place and think its
> > great.  But what do I do if I only depend on ValuedEnum to have type
> safe
> > enumerations?
> >
> > Should I just copy the class like many commons projects do
(referring
> to
> > the what digester did with a particular collections class from
> commons-
> > collections)?  Or should I just keep the dependency?  I don't mind
the
> > dependency especially when where i use this project's artifact
usually
> > includes commons-lang.
> 
> IMO - If the class is used in a bootstrap scenario (i.e. you want to
> keep thing a small as possible and minimize deps - then copy the class
> (under a directory package name).  Otherwise maintain the dependency
> reference.

+1

I think I know where this enum is used and it's really an internal
class.  IMHO, its dependency on commons-lang should be removed.


Regards,
Alan



Mime
View raw message