2007-07-31 00:17:09 -04:00
|
|
|
Apache Commons Collections
|
2001-05-03 22:54:59 -04:00
|
|
|
===========================
|
|
|
|
|
2007-07-31 00:17:09 -04:00
|
|
|
Welcome to the Collections component of the Apache Commons project.
|
2004-01-10 13:10:13 -05:00
|
|
|
This component contains many new collections and collection utilities.
|
2001-05-03 22:54:59 -04:00
|
|
|
|
2013-06-27 15:57:28 -04:00
|
|
|
Two jar files (apart from sources and javadocs) are produced by this component.
|
|
|
|
The first, commons-collections4-x.y.jar is the main jar used by applications.
|
|
|
|
The second, commons-collections4-x.y-tests.jar is an extension to junit
|
2004-01-10 13:10:13 -05:00
|
|
|
for testing new collection implementations and is not normally used by applications.
|
|
|
|
|
|
|
|
Building from source
|
2009-05-22 01:32:38 -04:00
|
|
|
=-=-=-=-=-=-=-=-=-=-
|
|
|
|
|
|
|
|
Maven2
|
|
|
|
------
|
|
|
|
Collections is usually built using Maven2.
|
|
|
|
It can be found here :
|
|
|
|
|
|
|
|
http://maven.apache.org/
|
|
|
|
|
|
|
|
Once installed, the major goals are:
|
|
|
|
|
|
|
|
mvn package - build jars
|
|
|
|
mvn install - place jars in local maven repository
|
|
|
|
mvn assembly:assembly - build tar.gz/zips
|
|
|
|
|
|
|
|
Ant
|
|
|
|
---
|
|
|
|
|
|
|
|
It may also be built using Ant.
|
2004-01-10 13:10:13 -05:00
|
|
|
It can be found here :
|
2001-05-03 22:54:59 -04:00
|
|
|
|
2003-07-03 23:09:59 -04:00
|
|
|
http://ant.apache.org/
|
2001-05-03 22:54:59 -04:00
|
|
|
|
|
|
|
For testing the project, you will also need JUnit :
|
|
|
|
|
|
|
|
http://www.junit.org/
|
|
|
|
|
|
|
|
To let the test process find JUnit, you may make a
|
|
|
|
copy of the build.properties.sample file, rename to
|
|
|
|
build.properties, and modify to reflect
|
|
|
|
the location of the junit.jar on your computer.
|
|
|
|
|
|
|
|
|
2006-05-07 16:15:33 -04:00
|
|
|
Once you have Ant properly installed, and the
|
2001-05-03 23:00:21 -04:00
|
|
|
build.properties file correctly reflects the location
|
|
|
|
of your junit.jar, you are ready to build and test.
|
2004-01-24 20:23:04 -05:00
|
|
|
The major targets are:
|
|
|
|
|
|
|
|
ant compile - compile the code
|
|
|
|
ant test - test using junit
|
|
|
|
ant jar - create a jar file
|
2013-06-23 14:27:46 -04:00
|
|
|
ant test-jar - create the testframework jar file
|
2004-01-24 20:23:04 -05:00
|
|
|
ant javadoc - build the javadoc
|
|
|
|
ant dist - create folders as per a distribution
|