The ant plugin

The ant plugin is useful for ant-based parts.

The ant build system is commonly used to build Java projects. The plugin requires a build.xml in the root of the source tree.

This plugin uses the common plugin keywords as well as those for “sources”. For more information, see Snapcraft parts metadata.

Additionally, this plugin uses the following plugin-specific keywords:

  • ant-properties (object)
    A dictionary of key-value pairs. Set the following properties when running ant.

  • ant-build-targets (list of strings)
    Run the given ant targets.

For examples, search GitHub for projects already using the plugin.

This is a snapcraft plugin. See Snapcraft plugins and Supported plugins for further details on how plugins are used.

Last updated 30 days ago. Help improve this document in the forum.