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:
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.
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 |