1source $stdenv/setup
2
3export JAVA_HOME=$jre
4
5cat >> props <<EOF
6output.dir=$out
7context.javaPath=$jre
8EOF
9
10mkdir -p $out
11$jre/bin/java -jar $src -text props
12
13echo "Removing files at top level"
14for file in $out/*
15do
16 if test -f $file ; then
17 rm $file
18 fi
19done
20
21cat >> $out/bin/aj-runtime-env <<EOF
22#! $SHELL
23
24export CLASSPATH=$CLASSPATH:.:$out/lib/aspectjrt.jar
25EOF
26
27chmod u+x $out/bin/aj-runtime-env