Ant Configuration Task

Description

This task can be used in conjunction with the ProGuard-Task.

It allows you to split the configuration settings for the ProGuard task into multiple, manageable pieces. This is of interest, if you have multiple calls to proguard with similar configuration settings.
This task can be used in as follow:

  1. Standalone, to define a configuration that is common to multiple calls to ProGuard.
  2. As a nested configuration, to refer a configuration defined somewhere else in this script.
  3. As a nested configuration, to refer a configuration defined in a ProGuard configuration file.

Before you are able to use the proguardconfiguration task, you have to tell Ant about this new task. This is done through:

<taskdef name="proguardconfiguration" classname="proguard.ant.ProGuardConfiguration" classpath="/usr/local/java/proguard/lib/proguard.jar" />

where you obviously have to replace the latter path by the path where you've installed ProGuard.

Parameters

This task has all parameters and nested tasks of the ProGuard Task. It is even allowed to have nested configuration settings in a configuration task. Besides there are some additional parameters to manage references of this configuration instance.

Attribute Description Required
id Unique identifier for this configuration instance, can be used to reference this configuration setting in scripts. No
refid Reference to another configuration instance. No

Copyright © 2003 Dirk Schnelle.