From 3b4aa924f0f003fe736c8274d85099410862a106 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 17 Jan 2006 13:43:33 +0000 Subject: [PATCH] doc updates for 76101 from Helen - how to build AJ and stuff it into AJDT. --- docs/faq/faq.xml | 125 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 124 insertions(+), 1 deletion(-) diff --git a/docs/faq/faq.xml b/docs/faq/faq.xml index ff6acf3ad..7a27b0b08 100644 --- a/docs/faq/faq.xml +++ b/docs/faq/faq.xml @@ -22,7 +22,7 @@ 2003-2005 Contributors. All rights reserved. - Last updated December 18, 2005 + Last updated January 17, 2006 For a list of recently-updated FAQ entries, see @@ -4294,6 +4294,11 @@ java -javaagent:aspectjweaver.jar -classpath "aspects.jar:${CLASSPATH}" .. + Name: JRE14_LIB, Value: (wherever your Java 4 Runtime is installed)\jre\lib\rt.jar + + + + Name: JRE15_LIB, Value: (wherever your Java 5 Runtime is installed)\jre\lib\rt.jar @@ -4303,6 +4308,12 @@ java -javaagent:aspectjweaver.jar -classpath "aspects.jar:${CLASSPATH}" .. + + + The org.aspectj.lib project is an AspectJ project so + you also have to have AJDT installed. For the latest AJDT release and + download instructions visit the + AJDT Downloads page. When you've added the variables click OK to do a full rebuild, then run the tests by going in the Package Explorer to: @@ -4360,6 +4371,117 @@ java -javaagent:aspectjweaver.jar -classpath "aspects.jar:${CLASSPATH}" .. + + + + How do I build AspectJ and integrate it into AJDT? + + + + To build AspectJ, first get the source tree as + described in . Once you have + a development environment set up, copy the + build/sample-local.properties file + to build/local.properties and within this file point the + java14.home and java15.home + to the corresponding places on your machine. + + + To build AspectJ on the command line: + + + + + + Open a command prompt + + + + + Navigate to the build directory within your AspectJ workspace + (to find out where your workspace is go to File > + Switch Workspace within Eclipse). + + + + + Run ant clean to remove the files from + previously built AspectJ versions. + + + + + Run ant to build AspectJ. The built files are created in + your_eclipse_installation_directory/aspectj_development_workspace/aj-build. + + + + + + To import a locally built AspectJ into AJDT first follow the + instructions on + How do I setup an AJDT development environment in Eclipse? + for setting up an AJDT development environment and running the + correctness tests. Then: + + + + + + Create a file aspectjlib.properties within + the org.aspectj.ajde project and add the following two lines + +aspectj.lib.dir=C:/eclipse/aspectj-workspace/aj-build/dist/tools/lib +aspectj.doc.dir=C:/eclipse/aspectj-workspace/aj-build/dist/ide/eclipse/org.aspectj.ajde.doc/doc + + making sure to change the path to correspond to your set up. + + + + + Run the build.xml file in org.aspectj.ajde + with the plugin jars target: + + + + Right click on the build.xml file in the + org.aspectj.ajde plugin + + + + + Select Run As > Ant build... + + + + + In the resultant dialog navigate to the Targets tab + + + + + Ensure plugin jars is the only selected target + + + + + Click Run + + + + + + + + Refresh the org.aspectj.ajde, org.aspectj.runtime + and org.aspectj.weaver plugins. + + + + + + @@ -4850,6 +4972,7 @@ java -javaagent:aspectjweaver.jar -classpath "aspects.jar:${CLASSPATH}" .. + -- 2.39.5