From a63bc04fb1cb6e8d6d0bc2a509ab9658e3d78c43 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 6 Aug 2003 02:08:40 +0000 Subject: initial checkin of the sandbox. The basic structure and examples of each type are there, but I have more examples and the ones there are not altogether validated. I'll make a few more changes before emailing dev and users about usage, etc. --- docs/sandbox/scripts/snippets.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/sandbox/scripts/snippets.sh (limited to 'docs/sandbox/scripts/snippets.sh') diff --git a/docs/sandbox/scripts/snippets.sh b/docs/sandbox/scripts/snippets.sh new file mode 100644 index 000000000..76c60ca94 --- /dev/null +++ b/docs/sandbox/scripts/snippets.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# shell script snippets for AspectJ + + +# @author Wes Isberg +# START-SAMPLE scripts-weaveLibraries +ASPECTJ_HOME="${ASPECTJ_HOME:-c:/aspectj-1.1.0}" +ajc="$ASPECTJ_HOME/bin/ajc" + +# make system.jar by weaving aspects.jar into lib.jar and app.jar +$ajc -classpath "$ASPECTJ_HOME/lib/aspectjrt.jar" \ + -aspectpath aspects.jar" \ + -injars "app.jar;lib.jar" \ + -outjar system.jar + +# XXX copy any resources from input jars to output jars + +# run it +java -classpath "aspects.jar;system.jar" com.company.app.Main + +# END-SAMPLE scripts-weaveLibraries -- cgit v1.2.3