Enhanced the AspectJ plugin to enable users to specify that emacs

symbols should be generated.  This is important for users that rely on
the -emacssym ajc command line option.  Specifically, the AspectJ emacs
minor mode uses these symbols (which is a very cool mode btw).

I've simply added a property called maven.aspectj.ajc.option.emacssym
which defaults to 'off' so there is no change in previous behavior of
the plugin.  However, if you set this option to 'on', the aspectj
compile goal will generate the appropriate symbol information.

Documentation has been updated to reflect the change.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113443 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
kaz 2003-05-26 15:43:49 +00:00
parent 5bd614b038
commit 4bfab8a325
4 changed files with 34 additions and 8 deletions

View File

@ -32,12 +32,17 @@
<j:set var="aspectjCompileNotRequired" value="${aspectj.compile.notRequired}"/>
<j:if test="${aspectjCompileNotRequired == null}">
<j:set
var="ajcEmacssymFlag"
value="${maven.aspectj.ajc.option.emacssym}"/>
<ant:ajc
destdir="${maven.build.dest}"
excludes="**/package.html"
debug="${maven.compile.debug}"
deprecation="${maven.compile.deprecation}"
optimize="${maven.compile.optimize}">
optimize="${maven.compile.optimize}"
emacssym="${ajcEmacssymFlag}">
<ant:src>
<ant:path refid="maven.compile.src.set"/>
@ -124,4 +129,4 @@
</goal>
</project>
</project>

View File

@ -0,0 +1 @@
maven.aspectj.ajc.option.emacssym=no

View File

@ -33,6 +33,16 @@
<role>Java Developer</role>
</roles>
</developer>
<developer>
<name>Pete Kazmier</name>
<id>kaz</id>
<email>pete-apache-dev@kazmier.com</email>
<organization></organization>
<roles>
<role>Java Developer</role>
<role>Documentation</role>
</roles>
</developer>
</developers>
<dependencies>
<dependency>

View File

@ -14,12 +14,22 @@
<th>Optional?</th>
<th>Description</th>
</tr>
<tr>
<td>maven.aspectj.ajc.option.emacssym</td>
<td>Yes</td>
<td>
When set to <code>on</code>, instructs the AspectJ compiler
to generate emacs symbols. Users taking advantage of the
AspectJ-emacs minor mode will want to specify this option.
The default value is <code>off</code>.
</td>
</tr>
<tr>
<td>maven.compile.debug</td>
<td>Yes</td>
<td>
Specifies wether to include debugging information in the compiled
class files; the default value is <code>on</code>.
Specifies whether to include debugging information in the
compiled class files; the default value is <code>on</code>.
Used by the "java:compile" goal.
</td>
</tr>
@ -27,9 +37,9 @@
<td>maven.compile.deprecation</td>
<td>Yes</td>
<td>
Specifies wether source should be compiled with deprecation
information; the default value is <code>off</code>.
Used by the "java:compile" goal.
Specifies whether source should be compiled with deprecation
information; the default value is <code>off</code>. Used by
the "java:compile" goal.
</td>
</tr>
<tr>
@ -109,4 +119,4 @@
</table>
</section>
</body>
</document>
</document>