From 8ced0584cb2cecd8db9bb9733230027d7c4a5d40 Mon Sep 17 00:00:00 2001 From: wisberg Date: Sun, 7 Sep 2003 00:47:25 +0000 Subject: in case anyone wants them... - a compile-speed script - a script that uses Jikes to incrementally compile AspectJ --- build/scripts/jikesInc.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 build/scripts/jikesInc.sh (limited to 'build/scripts/jikesInc.sh') diff --git a/build/scripts/jikesInc.sh b/build/scripts/jikesInc.sh new file mode 100644 index 000000000..db3ef00a2 --- /dev/null +++ b/build/scripts/jikesInc.sh @@ -0,0 +1,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 org.eclipse.jdt.core/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" ++ + + + -- cgit v1.2.3