blob: a92ed67a00901935b88d31eca85306f1dad6d2b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
# shell script snippets for AspectJ
# @author Wes Isberg
# START-SAMPLE scripts-weaveLibraries Shell script to use ajc to weave jars and then run
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 required resources from META-INF directories
# run it
java -classpath "aspects.jar;system.jar" com.company.app.Main
# END-SAMPLE scripts-weaveLibraries
|