Community
Participate
Working Groups
When using the iajc task from within ant, we tried to specify X="reweavable" to produce reweavable class files: <iajc verbose="${verbose}" debug="${debug}" deprecation="${deprecation}" destdir="${build.classes.dir}" nowarn="true" maxmem="512m" X="reweavable"> <injars> <pathelement path="${build.dir}/classes.jar"/> </injars> <sourceroots> <!-- aspects --> <pathelement path="${src.aspects.dir}"/> <pathelement path="${src.debugaspects.dir}"/> </sourceroots> <classpath> <path refid="compile.main.class.path"/> </classpath> </iajc> When the ant task runs this is the output on the command line: ignored: -Xreweavable at file:/xxxxx/build.xml A quick scan through the AjcTask source would seem to point to the fact that the reweavable option has not been added to the VALID_XOPTIONS list (which may or may not control this behaviour) whereas the other new X option "lazyTjp" has been added. Tested in 1.2rc2.
Have you tried this alternative? <iajc verbose="${verbose}" debug="${debug}" deprecation="${deprecation}" destdir="${build.classes.dir}" nowarn="true" maxmem="512m" Xreweavable="true">
Xreweavable="true" seems to work fine (no errors or warnings) at any rate... I was under the impression from the documentation that the X options were specified using a comma separated list in the ant task.