~ubuntu-branches/ubuntu/maverick/proguard/maverick

« back to all changes in this revision

Viewing changes to docs/manual/ant.html

  • Committer: Bazaar Package Importer
  • Author(s): Sam Clegg, Onkar Shinde, Sam Clegg
  • Date: 2009-10-09 16:17:49 UTC
  • mfrom: (1.2.3 upstream) (3.1.6 karmic)
  • Revision ID: james.westby@ubuntu.com-20091009161749-qjk059y5r792co7c
Tags: 4.4-1
[ Onkar Shinde ]
* Merge from Ubuntu. (Closes: #534029, #548810)

[ Sam Clegg ]
* Thanks Onkar for the above fixes!
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
ProGuard configuration options by XML configuration tags. The resulting
103
103
configuration will be equivalent, but much more verbose and difficult to read,
104
104
as XML goes. The remainder of this page presents the supported tags. For a
105
 
more extensive discussion of their meaning, please refer to the traditional <a
 
105
more extensive discussion of their meaning, please consult the traditional <a
106
106
href="usage.html">Usage</a> section. You can find some sample configuration
107
107
files in the <code>examples/ant</code> directory of the ProGuard distribution.
108
108
<p>
169
169
<dt><a href="usage.html#optimizationpasses"><code><b>optimizationpasses</b></code></a>
170
170
    = "<i>n</i>"
171
171
    (default = 1)</dt>
172
 
<dd>The number of optimization passes to be performed.
 
172
<dd>The number of optimization passes to be performed.</dd>
173
173
 
174
174
<dt><a href="usage.html#allowaccessmodification"><code><b>allowaccessmodification</b></code></a>
175
175
    = "<i>boolean</i>"
267
267
<dt><a href="usage.html#dontnote"><code><b>note</b></code></a>
268
268
    = "<i>boolean</i>"
269
269
   (default = true)</dt>
270
 
<dd>Print notes about potential mistakes or omissions in the
271
 
    configuration.</dd>
 
270
<dd>Print notes about potential mistakes or omissions in the configuration.
 
271
    Use the nested element <a href="#dontnote">dontnote</a> for more
 
272
    fine-grained control.</dd>
272
273
 
273
274
<dt><a href="usage.html#dontwarn"><code><b>warn</b></code></a>
274
275
    = "<i>boolean</i>"
275
276
    (default = true)</dt>
276
 
<dd>Warn about unresolved references at all.</dd>
 
277
<dd>Print warnings about unresolved references. Use the nested
 
278
    element <a href="#dontwarn">dontwarn</a> for more fine-grained
 
279
    control. <i>Only use this option if you know what you're doing!</i></dd>
277
280
 
278
281
<dt><a href="usage.html#ignorewarnings"><code><b>ignorewarnings</b></code></a>
279
282
    = "<i>boolean</i>"
310
313
    <code><b>/&gt;</b></code></dt>
311
314
<dd>Specifies the library jars (or wars, ears, zips, or directories).</dd>
312
315
 
 
316
<dt><a href="usage.html#keepdirectories"><code><b>&lt;keepdirectory name = </b></code></a>"<i>directory_name</i>"
 
317
    <code><b>/&gt;</b></code><br/>
 
318
    <a href="usage.html#keepdirectories"><code><b>&lt;keepdirectories filter = </b></code></a>"<a href="usage.html#filefilters"><i>directory_filter</i></a>"
 
319
    <code><b>/&gt;</b></code></dt>
 
320
<dd>Keep the specified directories in the output jars (or wars, ears, zips, or
 
321
    directories).</dd>
 
322
 
313
323
<dt><a href="usage.html#keep"><code><b>&lt;keep</b></code></a>
314
324
    <a href="#keepmodifier"><i>modifiers</i></a>
315
325
    <a href="#classspecification"><i>class_specification</i></a>
375
385
    <a href="#classmemberspecification"><i>class_member_specifications</i></a>
376
386
    <code><b>&lt;/assumenosideeffects&gt;</b></code></dt>
377
387
<dd>Assume that the specified methods don't have any side effects, while
378
 
    optimizing.</dd>
 
388
    optimizing. <i>Only use this option if you know what you're
 
389
    doing!</i></dd>
 
390
 
 
391
<dt><a href="usage.html#optimizations"><code><b>&lt;optimization name = </b></code></a>"<a href="optimizations.html"><i>optimization_name</i></a>"
 
392
    <code><b>/&gt;</b></code><br/>
 
393
    <a href="usage.html#optimizations"><code><b>&lt;optimizations filter = </b></code></a>""<a href="optimizations.html"><i>optimization_filter</i></a>"
 
394
    <code><b>/&gt;</b></code></dt>
 
395
<dd>Perform only the specified optimizations.</dd>
 
396
 
 
397
<dt><a href="usage.html#keeppackagenames"><code><b>&lt;keeppackagename name = </b></code></a>"<i>package_name</i>"
 
398
    <code><b>/&gt;</b></code><br/>
 
399
    <a href="usage.html#keeppackagenames"><code><b>&lt;keeppackagenames filter = </b></code></a>"<a href="usage.html#filters"><i>package_filter</i></a>"
 
400
    <code><b>/&gt;</b></code></dt>
 
401
<dd>Keep the specified package names from being obfuscated. If no name is
 
402
    given, all package names are preserved.</dd>
379
403
 
380
404
<dt><a href="usage.html#keepattributes"><code><b>&lt;keepattribute name = </b></code></a>"<i>attribute_name</i>"
 
405
    <code><b>/&gt;</b></code><br/>
 
406
    <a href="usage.html#keepattributes"><code><b>&lt;keepattributes filter = </b></code></a>"<a href="usage.html#filters"><i>attribute_filter</i></a>"
381
407
    <code><b>/&gt;</b></code></dt>
382
 
<dd>Preserve the given optional Java bytecode attribute, with optional
 
408
<dd>Preserve the specified optional Java bytecode attributes, with optional
383
409
    wildcards. If no name is given, all attributes are preserved.</dd>
384
410
 
385
 
<dt><a href="usage.html#adaptresourcefilenames"><code><b>&lt;adaptresourcefilenames filter = </b></code></a>"<a href="usage.html#filters"><i>filter</i></a>"
 
411
<dt><a href="usage.html#adaptclassstrings"><code><b>&lt;adaptclassstrings filter = </b></code></a>"<a href="usage.html#filters"><i>class_filter</i></a>"
 
412
    <code><b>/&gt;</b></code></dt>
 
413
<dd>Adapt string constants in the specified classes, based on the obfuscated
 
414
    names of any corresponding classes.</dd>
 
415
 
 
416
<dt><a href="usage.html#adaptresourcefilenames"><code><b>&lt;adaptresourcefilenames filter = </b></code></a>"<a href="usage.html#filefilters"><i>file_filter</i></a>"
386
417
    <code><b>/&gt;</b></code></dt>
387
418
<dd>Rename the specified resource files, based on the obfuscated names of the
388
419
    corresponding class files.</dd>
389
420
 
390
 
<dt><a href="usage.html#adaptresourcefilecontents"><code><b>&lt;adaptresourcefilecontents filter = </b></code></a>"<a href="usage.html#filters"><i>filter</i></a>"
 
421
<dt><a href="usage.html#adaptresourcefilecontents"><code><b>&lt;adaptresourcefilecontents filter = </b></code></a>"<a href="usage.html#filefilters"><i>file_filter</i></a>"
391
422
    <code><b>/&gt;</b></code></dt>
392
423
<dd>Update the contents of the specified resource files, based on the
393
 
    obfuscated names of the class files.</dd>
 
424
    obfuscated names of the processed classes.</dd>
 
425
 
 
426
<dt><a name="dontnote" />
 
427
    <a href="usage.html#dontnote"><code><b>&lt;dontnote filter = </b></code></a>"<a href="usage.html#filters"><i>class_filter</i></a>"
 
428
    <code><b>/&gt;</b></code></dt>
 
429
<dd>Don't print notes about classes matching the specified class name
 
430
    filter.</dd>
 
431
 
 
432
<dt><a name="dontwarn" />
 
433
    <a href="usage.html#dontwarn"><code><b>&lt;dontwarn filter = </b></code></a>"<a href="usage.html#filters"><i>class_filter</i></a>"
 
434
    <code><b>/&gt;</b></code></dt>
 
435
<dd>Don't print warnings about classes matching the specified class name
 
436
    filter. <i>Only use this option if you know what you're doing!</i></dd>
394
437
 
395
438
<dt><a name="configuration_element"><code><b>&lt;configuration refid = </b></code></a>"<i>ref_id</i>"
396
439
    <code><b>/&gt;</b></code></dt>
434
477
<dl>
435
478
 
436
479
<dt><code><b>filter</b></code> =
437
 
    "<a href="usage.html#filters"><i>filter</i></a>"</dt>
 
480
    "<a href="usage.html#filefilters"><i>file_filter</i></a>"</dt>
438
481
<dd>An optional filter for all class file names and resource file names that
439
482
    are encountered.</dd>
440
483
 
441
484
<dt><code><b>jarfilter</b></code> =
442
 
    "<a href="usage.html#filters"><i>filter</i></a>"</dt>
 
485
    "<a href="usage.html#filefilters"><i>file_filter</i></a>"</dt>
443
486
<dd>An optional filter for all jar names that are encountered.</dd>
444
487
 
445
488
<dt><code><b>warfilter</b></code> =
446
 
    "<a href="usage.html#filters"><i>filter</i></a>"</dt>
 
489
    "<a href="usage.html#filefilters"><i>file_filter</i></a>"</dt>
447
490
<dd>An optional filter for all war names that are encountered.</dd>
448
491
 
449
492
<dt><code><b>earfilter</b></code> =
450
 
    "<a href="usage.html#filters"><i>filter</i></a>"</dt>
 
493
    "<a href="usage.html#filefilters"><i>file_filter</i></a>"</dt>
451
494
<dd>An optional filter for all ear names that are encountered.</dd>
452
495
 
453
496
<dt><code><b>zipfilter</b></code> =
454
 
    "<a href="usage.html#filters"><i>filter</i></a>"</dt>
 
497
    "<a href="usage.html#filefilters"><i>file_filter</i></a>"</dt>
455
498
<dd>An optional filter for all zip names that are encountered.</dd>
456
499
 
457
500
</dl>
560
603
 
561
604
<hr>
562
605
<address>
563
 
Copyright &copy; 2002-2008
 
606
Copyright &copy; 2002-2009
564
607
<a href="http://www.graphics.cornell.edu/~eric/">Eric Lafortune</a>.
565
608
</address>
566
609
</body>