Issue Type: New Feature New Feature
Affects Versions: 1.4
Assignee: Unassigned
Attachments: aspectj-1.4-gmf-1.0-to-1.4-gmf-1.1.patch
Created: 27/Nov/12 10:33 AM
Description:

As ajc is invoked in the same jvm than maven, the resulting class files may contains jvm specific calls.
For example, you want to weave for a 1.4 target jvm but maven is launched with a 1.5 one. You should specify the source, target and conpliance plugin attributes. But aspectj may invoke non existing methods in java 1.4 (as new java.math.BigDecimal(10)).
To avoid that, we have to weave with a 1.4 jvm (which is impossible with maven).

You'll find in attachment a patch of the 1.4 release with two additionnals attributes :

  • executable : the path to the java vm to use for ajc calls (if null aspectj plugin will run ajc in the maven jvm, i.e. doesn't fork)
  • executableArguments : optionnals ajc jvm arguments (xmx xms ...)

This code is inspired of the maven-compiler-plugin which is able to fork and use the org.codehaus.plexus.util.cli package utilities.

Project: Mojo AspectJ Plugin
Priority: Major Major
Reporter: Erwann Feat
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to