Ant build file sample.

<?xml version="1.0" ?>
<project name="test-jarg" default="test" basedir=".">
   <!-- set global properties for this build -->
   <property name="dist"  value="../all-cvs/jarg/dist"/>
   <taskdef name="jarg" classname="jarg.JargTask" classpath="${dist}/lib/jarg.jar"/>

   <target name="test">
      <jarg jarfile="abc.jar" verbose="true" rnlog="rnlog.txt" />
   </target>
</project>

jarg task

parameters

Attribute Description Default Required
verbose verbose mode false No
verbosern verbose of renaming false No
verboseufm verbose of removing unused fields and methods false No
verbosebco verbose of byte-code optimizing false No
verboseall verbose all false No
showstat show statistics false No
showtime show time false No
nocomp no commpressed output jar file false No
normdir no remove directry entry in jar file false No
normlv no remove local variable false No
normln no remove line number false No
normsf no remove source file false No
normsy no remove 'Synthetic' false No
normin no remove 'InnerClasses' false No
normex no remove 'Exceptions' false No
nornc no rename class false No
nornf no rename field false No
nornm no rename method false No
nobco no byte-code optimizing false No
rnlog rename log file.
ex) rnlog="rnlog.txt"
No
excpp list of excepting package.
ex) excpp="@file.txt"
No
excpc list of excepting class.
ex) excpc="@file.txt"
No
excpf list of excepting field.
ex) excpf="@file.txt"
No
excpm list of excepting method.
ex) excpm="@file.txt"
No
j2me_prev j2me preverify command path.
ex) j2me_prev="c:\j2mewtk\bin\preverify.exe"
No
j2me_cp j2me preverify class path.
ex) j2me_cp="c:\j2mewtk\lib\midpapi.zip"
No