[
https://issues.apache.org/jira/browse/LABS-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664804#action_12664804
]
Simone Gianni commented on LABS-201:
------------------------------------
Used the new AjcLauncher instead of subclassing the aspectj mojo classes also
for plain compile and test-compile. This gives me a bit more freedom to
customize options, removes a lot of dummy code needed by maven doclets, and has
made the build faster.
Made a quick test about using compile time weaving instead of LTW during test
execution, with far less than encouraging results : LTW weaves only classes
which are loaded, while compile time weaving has to load every single class in
the classpath to check if it could be weaved or not. In an "hand made" AspectJ
system this would not be a big problem because the user could carefully tell
the compiler which jars need to be weaved if any, but in a magma environment
where the user is not required to do so loading all those classes takes eons
and consumes far too much ram.
> Full build system
> -----------------
>
> Key: LABS-201
> URL: https://issues.apache.org/jira/browse/LABS-201
> Project: Labs
> Issue Type: New Feature
> Components: Magma
> Affects Versions: Current
> Reporter: Simone Gianni
> Assignee: Simone Gianni
> Fix For: Current
>
>
> Currently Magma runs in a LTW environment, which is good for development. The
> final build system should create a complete WAR, performing all the necessary
> weaving optimized.
> This task is not simple as it may seem, because each jar to be included in
> the WAR have to be passed thru the weaver, and then repackaged to form the
> weaved version, avoiding to place duplicated classes (coming from different
> jars) in the same output jar.
> It needs to be investigated wether playing with current AspectJ configuration
> (inpath, aspectpath, classpath, outjar) and iterating over every jar could be
> enough, or not.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]