Antmod Jar Plugin

Creates jar files using Ant's jar task. More...

Release-level Ant targets:
jar Builds jar files in each module of the release.
Events fired: jar-pre, jar-post.

Module-level Ant targets:
jar Create a JAR file with all classfiles and resource files for this module.
Events intercepted: build-libraries.
Events fired: jar-pre, jar-post.

Configurable properties: [...]
antmod.jar.destdir The module-level destination directory where jar files are created. Defaults to ${antmod.module.dirs.build}/jar.
antmod.jar.integrated Set to false if you want to produce a separate "...-resources.jar" with resource files. Defaults to true.
antmod.jar.metainf.srcdir Module-level directory with files to-be-placed in the jar's META-INF directory. Defaults to ${antmod.module.dirs.src}/meta-inf.
antmod.jar.metainf.destdir Build directory where metainf source files are copied during the jar creation (needed such that modules without a src/meta-inf directory always have a build/meta-inf directory that can be passed to the metainf option of the Ant jar task). Defaults to ${antmod.module.dirs.build}/meta-inf.
antmod.jar.prefix Jar filename prefix (like 'companyname-'). Defaults to empty.

Overview

This plugin creates jar files containing all classes and other classpath resources for a module. It does this using Ant's jar task.