2006-03-26 04:52:55 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
export JAVA_HOME=$jre
|
|
|
|
|
|
|
|
cat >> props <<EOF
|
|
|
|
output.dir=$out
|
|
|
|
context.javaPath=$jre
|
|
|
|
EOF
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2006-03-26 04:52:55 +01:00
|
|
|
$jre/bin/java -jar $src -text props
|
|
|
|
|
|
|
|
echo "Removing files at top level"
|
|
|
|
for file in $out/*
|
|
|
|
do
|
|
|
|
if test -f $file ; then
|
|
|
|
rm $file
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2006-08-02 17:42:52 +01:00
|
|
|
cat >> $out/bin/aj-runtime-env <<EOF
|
2006-03-26 04:52:55 +01:00
|
|
|
#! $SHELL
|
|
|
|
|
2006-08-02 17:42:52 +01:00
|
|
|
export CLASSPATH=$CLASSPATH:.:$out/lib/aspectjrt.jar
|
2006-03-26 04:52:55 +01:00
|
|
|
EOF
|
|
|
|
|
2006-08-02 17:42:52 +01:00
|
|
|
chmod u+x $out/bin/aj-runtime-env
|