From: wisberg Date: Wed, 4 Aug 2004 19:52:34 +0000 (+0000) Subject: up-to-date tip for clean compiles, old Ajc10 task not supported in 1.2. X-Git-Tag: for_ajdt1_1_12~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5b869db9588c48ff452c6202bcb64ad531279ce;p=aspectj.git up-to-date tip for clean compiles, old Ajc10 task not supported in 1.2. --- diff --git a/docs/devGuideDB/antsupport.xml b/docs/devGuideDB/antsupport.xml index 52fb4e0a7..e2a5ddf65 100644 --- a/docs/devGuideDB/antsupport.xml +++ b/docs/devGuideDB/antsupport.xml @@ -15,7 +15,7 @@ , - a task to run the new AspectJ 1.1 compiler, + a task to run the AspectJ post-1.1 compiler, which supports all the eclipse and ajc options, including incremental mode. @@ -74,7 +74,7 @@ The current resource file retains the name "ajc" for the Ajc10 task, - and uses "iajc" for the AspectJ 1.1 task. + and uses "iajc" for the AspectJ post-1.1 task. For more information on using Ant, please refer to Jakarta's @@ -86,16 +86,19 @@ AjcTask (iajc) - This task uses the AspectJ 1.1 compiler ajc. + This task uses the AspectJ post-1.1 compiler ajc. The AspectJ compiler can be used like Javac to compile Java sources, but it can also compile AspectJ sources or weave binary aspects with Java bytecode. It can run in normal "batch" mode or in an "incremental" mode, where it only recompiles files it has to revisit. For more information on ajc, see . + Unlike Javac or the Javac Ant task, this task always compiles the + specified files since aspects can apply to other (updated) files. + For a workaround, see . - Beyond the normal ajc 1.1 compiler options, this task also supports + Beyond the normal ajc compiler options, this task also supports an experimental option for an incremental "tag" file, and it can copy resources from source directories or input jars to the output jar or directory. @@ -792,6 +795,37 @@ + + Avoiding clean compiles + + Unlike javac, the ajc compiler always processes all input because + new aspects can apply to updated classes and vice-versa. + However, in the case where no files have been updated, there + is no reason to recompile sources. One way to implement that + is with an explicit dependency check using the uptodate task: + + + + + + + + + + + + + + When using this technique, be careful to verify that binary + input jars are themselves up-to-date after they would have been + modified by any build commands. + + + Programmatically handling compiler messages @@ -999,12 +1033,12 @@ This task handles the same arguments as those used by the AspectJ 1.0 task. This should permit those with existing build scripts using the Ajc Ant - task to continue using the same scripts when compiling with 1.1. + task to continue using the same scripts when compiling with 1.1. This will list any use of options no longer supported in 1.1 (e.g., lenient, strict, workingdir, preprocess, usejavac,...), and does not provide access to the new features of AspectJ 1.1. (Developers using AspectJ 1.1 only should upgrade their scripts - to use AjcTask instead.) + to use AjcTask instead. This will not work for AspectJ 1.2 or later.)