Chapter 5. Packaging projects

5.1 Working with files
5.2 Introducing mappers
5.3 Modifying files as you go
5.4 Preparing to package
5.5 Creating JAR files
5.6 Testing with JAR files
5.7 Creating Zip files
5.8 Packaging for Unix
5.9 Working with resources
5.10 Summary

We can now compile and test our diary classes, using Ant, <javac>, and <junit>. This code can be turned into a JAR library. It can be used inside our application, or it can be redistributed for other people to use.

This brings us and our build file to the next problem: packaging a program for reuse and redistribution. We want to take the compiled classes and create a JAR file that can itself be bundled into some source and binary redistribution packages—such as Zip and ...

Get Ant in Action 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.