In this example only some of the required properties have been specified, the rest will be automatically added. See the comprehensive description of the epub Ant task for details. A more complete example is found in the examples chapter.

Note that in order for the script to execute the epub task must be in the classpath. If you execute the script from within Eclipse simply make sure that the runtime environment of the workspace is used as shown in the illustration below.