aboutsummaryrefslogtreecommitdiffstats
path: root/docs/teaching/exercises/scripts/setpaths.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docs/teaching/exercises/scripts/setpaths.sh')
-rwxr-xr-xdocs/teaching/exercises/scripts/setpaths.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/teaching/exercises/scripts/setpaths.sh b/docs/teaching/exercises/scripts/setpaths.sh
new file mode 100755
index 000000000..f54f3dfaf
--- /dev/null
+++ b/docs/teaching/exercises/scripts/setpaths.sh
@@ -0,0 +1,18 @@
+# this file should be sourced, NOT executed
+
+# Change this to be the full path for this directory
+EXTRACTION=$HOME/aj-@aj.event@
+
+if [ "$JAVA_HOME" = "" ]
+then
+ echo Please remember to manually set $JAVA_HOME to
+ echo the location of your java installation
+fi
+
+export ASPECTJ_HOME=$EXTRACTION/aspectj
+export PATH=$ASPECTJ_HOME/bin:$PATH
+export CLASSPATH=.:$ASPECTJ_HOME/lib/aspectjrt.jar:$EXTRACTION/junit.jar
+
+chmod a+x $ASPECTJ_HOME/bin/ajc
+chmod a+x $ASPECTJ_HOME/bin/ajbrowser
+