[jdom-interest] More questions about collections.

philip.nelson at omniresources.com philip.nelson at omniresources.com
Wed Mar 21 07:29:17 PST 2001


> I assume from our problems that the JDOM API uses the
> com.sun.....collections imports rather than java.util imports.
> If we want to use java.util.List and don't really want 
> collections, is there
> a script that builds without collections?
> I assume that this is for JDK1.2+? What is the history and reasons for
> collections and ant libraries. I am still not clear.

Actually, it's the other way around.  JDOM is build with the jdk1.2
collections api in java.util.  So, if you have the com.sun... in your JDOM
source, it is because you ran the build11.bat or build11.sh scripts.  These
scripts go through the whole source tree and change any import java.util...
statements to import com.sun.....

JDOM is built on collections, it's one of the primary features so that JDOM
behaves with xml more like java behaves with any composit data.  Ant is used
to "simplify" the building process and is in general is pretty successful at
it.  It doesn't do much for you if you work in an IDE however and perhaps
that is where you are coming from.  For automated builds, deployments,
versioning and lot's more, it's a really great tool.



More information about the jdom-interest mailing list