[
http://jira.jboss.com/jira/browse/JBAOP-311?page=comments#action_12361700 ]
Kabir Khan commented on JBAOP-311:
----------------------------------
I have worked through the bulk of the examples, and moved most of the work into
examples/examples-build.xml. Each individual example's build.xml includes this file
and links into/depends on the appropriate targets in the main examples-build.xml.
The following still have to be done:
annotated-injboss + injboss - the packaging is complex, but should be possible to leverage
the targets in example-build.xml to some degree
annotation14 - This should maybe be removed OR at least rewritten to use JDK 1.5
annotations. We really want people to use JDK 1.5 annotations + jboss retro, and to retire
annotationc
metadata - This should be kept, but we should use JDK 1.5 annotations
JDK 5 is used as the "base" JDK for the dist. For the examples that have been
rewritten, there are 4 standard targets:
ant run.aopc.50 A) Compile and AOPC using JDK 5, and run using JDK 5
ant run.loadtime.50 B) Compile using JDK 5, and run using JDK 5
ant run.aopc.14 C) Compile and AOPC using some JDK (see below), and run using
JDK 1.4
ant run.loadtime.14 D) Compile using some JDK (see below), and run using JDK 1.4
fall into two categories with regard to C) and D)
1) Not using annotations - this is the simple case. The classes are compiled (and
AOPC'ed) with JDK 1.4, and then run with JDK 1.4 (If the user is using JDK 5, then C)
and D) will work with that as well)
These are the examples covered by this so far: all, aspect, beanstyleconf, caller, cflow,
composition, constructor-execution, declare, dynamic_cflow, dynamic-aop, field-execution,
implements, instanceof, introductions, ioc_with_has, method-execution, overloaded-advices,
packaging, precedence, stacks
2) Using annotations - this is slightly more tricky, but shows how to use jboss retro to
use annotations with JDK 1.5. The user must be set up to use JDK 5 before executing ant.
The classes are then compiled (amd AOPC'ed), and then retroed with JDK 5. The user
must specify the path to a JDK 1.4 executable in examples/examples.properties, which is
then used to run the retroed example with JDK 1.4.
Update tutorial examples to work with jboss retro for jdk 1.4
-------------------------------------------------------------
Key: JBAOP-311
URL:
http://jira.jboss.com/jira/browse/JBAOP-311
Project: JBoss AOP
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Reporter: Kabir Khan
Assigned To: Kabir Khan
Fix For: 2.0.0.alpha5
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira