11.2. Getting Jakarta HttpClient Source Code
Problem
You need the source code for the Jakarta HttpClient project.
Solution
Download the source distribution of Jakarta HttpClient 3.0. Following
the steps outlined in Recipe 1.3,
download “Commons HttpClient 3.0”
instead of Commons Lang. The HttpClient source
archive—commons-httpclient-3.0-src.zip—
contains
a directory named src
, which contains the source
for HttpClient.
Discussion
The commons-httpclient-3.0-src
directory will
contain the following:
-
build.xml
An Apache Ant build file that you can use to compile the source. If Ant is installed, you can compile or test by running
ant compile
orant test
.-
maven.xml
,project.xml
, andproject.properties
These three files are Maven project files. If Maven is installed, you can compile or test by running
maven compile
ormaven test
.-
src/java
This subdirectory contains the source for the classes in Jakarta HttpClient.
-
src/test
This subdirectory contains unit tests for the Jakarta HttpClient project. Each
*Test.java
file is an extension of JUnitTestCase
class.
See Also
For information on obtaining the binary distribution for Jakarta HttpClient, see Recipe 11.1.
Get Jakarta Commons Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.