'. '

Sources

From APIDesign

Revision as of 11:28, 6 August 2014 by JaroslavTulach (Talk | contribs)
Jump to: navigation, search

All the code snippets shown in the Practical API Design book are extracted from real projects. As such it is guaranteed they are correct, they compile and can even be executed, debugged and tested.

Moreover, as it is often not enough to see just a few lines of code in middle of a page, readers are recommended to get the whole tree of sources, including their history and play with them for real. Preferably use Mercurial to clone the sources Hg repository:

$ hg clone http://source.apidesign.org/hg/apidesign/

Environment

In order to use the sample sources you may need:

  • At least JDK 1.6.0 - necessary for compilation and execution
  • At least Ant 1.8.1 - allows simple compilation and execution from command line
  • At least NetBeans IDE 6.9 - all projects are configured to smoothly open in NetBeans IDE

If you managed to successfully start NetBeans IDE, you probably have everything necessary installed on your computer.

Download

Those that prefer ZIP over Mercurial (which I don't understand) can download the latest published build from our continuous build server. Download the latest version of apidesign-XYZ.zip, unzip it on your local computer. Start NetBeans IDE and open individual projects as needed.


Usage

You need to build the root project:

$ ant build.xml # or from the IDE

before opening its sub-projects in the IDE. Failing to do so may cause the projects to show broken references (due to missing libraries that need to be downloaded first).

Personal tools
buy