blob: 3c8b1a54fc8de08d850d48832fbd0b4673529b91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh
# incrementally-compile AspectJ sources using Jikes
[ -n "$DEBUG" ] && set -vx
### set for your system
jikes="${jikes:-j:/home/wes/dev/bin/win/jikes.exe}"
jdk14="${jdk14:-d:/jdk14}"
PS="${PS:-;}"
#################
ajdir=`dirname "$0"`/../..
ajdir=`cd "$ajdir"; pwd`
ajdir=`echo "$ajdir" | sed 's|/cygdrive/\([a-zA-Z]\)/|\1:/|'`
allfiles="$ajdir/allfiles.lst"
srcdirs="ajbrowser ajde asm bridge org.aspectj.ajdt.core runtime taskdefs util weaver"
libs="lib/ant/lib/ant.jar lib/bcel/bcel.jar lib/jdtcore-aj/jdtcore-for-aspectj.jar"
classesDir="$ajdir/classes"
[ -f "$allfiles" ] && rm "$allfiles"
sourcepath=""
for i in $srcdirs; do
sourcepath="$sourcepath${PS}$ajdir/$i/src"
find "$ajdir/$i/src" -type f -name \*.java
done > "$allfiles"
classpath=""
for i in $libs; do
classpath="$classpath${PS}$ajdir/$i"
done
classpath="$jdk14/jre/lib/rt.jar$sourcepath$classpath"
[ -d "$classesDir" ] || mkdir "$classesDir"
rm -rf "$classesDir"/*
set -vx
exec "$jikes" -d "$classesDir" -classpath "$classpath" @"$allfiles" ++
|