2022-12-07 23:51:03 +00:00
|
|
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
2006-03-26 03:52:55 +00: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 03:52:55 +00: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 16:42:52 +00:00
|
|
|
cat >> $out/bin/aj-runtime-env <<EOF
|
2006-03-26 03:52:55 +00:00
|
|
|
#! $SHELL
|
|
|
|
|
2006-08-02 16:42:52 +00:00
|
|
|
export CLASSPATH=$CLASSPATH:.:$out/lib/aspectjrt.jar
|
2006-03-26 03:52:55 +00:00
|
|
|
EOF
|
|
|
|
|
2006-08-02 16:42:52 +00:00
|
|
|
chmod u+x $out/bin/aj-runtime-env
|