2006-03-26 05:52:55 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
export JAVA_HOME=$jre
|
|
|
|
|
|
|
|
cat >> props <<EOF
|
|
|
|
output.dir=$out
|
|
|
|
context.javaPath=$jre
|
|
|
|
EOF
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2006-03-26 05:52:55 +02: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 18:42:52 +02:00
|
|
|
cat >> $out/bin/aj-runtime-env <<EOF
|
2006-03-26 05:52:55 +02:00
|
|
|
#! $SHELL
|
|
|
|
|
2006-08-02 18:42:52 +02:00
|
|
|
export CLASSPATH=$CLASSPATH:.:$out/lib/aspectjrt.jar
|
2006-03-26 05:52:55 +02:00
|
|
|
EOF
|
|
|
|
|
2006-08-02 18:42:52 +02:00
|
|
|
chmod u+x $out/bin/aj-runtime-env
|