From: wisberg Date: Sun, 13 Apr 2003 10:14:43 +0000 (+0000) Subject: instructions on changing default resource-copying behavior, and misc rewordings X-Git-Tag: V1_1_0_RC2~174 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=71f9df23257aa7395a641ee0bf03e449707fd5fb;p=aspectj.git instructions on changing default resource-copying behavior, and misc rewordings --- diff --git a/docs/dist/doc/ant-tasks.html b/docs/dist/doc/ant-tasks.html index 5c265acab..ae65fb14f 100644 --- a/docs/dist/doc/ant-tasks.html +++ b/docs/dist/doc/ant-tasks.html @@ -189,22 +189,23 @@ When the user has quit, then this runs the application.

Ajc11CompilerAdapter

-This CompilerAdapter can be used in javac tasks calls -by setting the build.compiler -property to the class name. This enables users to -to easily switch between Javac and the AspectJ compiler. -However, javac's handling of source files prevents the adapter from -doing a correct compile in some cases, so use +This CompilerAdapter can be used in javac task calls +by setting the build.compiler property. + This enables users to +to easily switch between the Javac and AspectJ compilers. +However, the Javac task's pruning of source files prevents +the adapter from doing a correct compile in some cases, so use AjcTask where possible.

To build using the adapter, put the aspectjtools.jar on the system/ant classpath (e.g., in ${ANT_HOME}/lib) and define the build.compiler -property as the fully-qualified name of the class. +property as the fully-qualified name of the class, + org.aspectj.tools.ant.taskdefs.Ajc11CompilerAdapter. The AspectJ compiler should run for any compile using the Javac task (for options, see the Ant documentation for the Javac task). -For example, this passes all out-of-date source files in the +For example, the call below passes all out-of-date source files in the src/org/aspectj/ subdirectories to the ajc command along with the destination directory: @@ -241,9 +242,9 @@ To pass ajc-specific arguments, use a compilerarg entry. The adapter supports any ajc command-line option passed using compilerarg, as well as -the following options available only in AjcTask. +the following options available only in AjcTask. Find more details on the following options in the -AjcTask documentation. +AjcTask documentation.

Note the names above may differ slightly here from what you might expect from AjcTask; use these forms when specifying compilerarg. +

Also note that + the compiler will mimic the Javac task's copying of resource files + by specifying "**/CVS/*,**/*.java,**/*.aj" for the sourceroot + copy filter by default. To change this behavior, + supply your own value (e.g., "**/*" to copy nothing).

Warning - use build.compiler.clean to get all files, when available: