mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
6fa02079b8
svn path=/nixpkgs/trunk/; revision=6019
27 lines
406 B
Bash
Executable file
27 lines
406 B
Bash
Executable file
source $stdenv/setup
|
|
|
|
export JAVA_HOME=$jre
|
|
|
|
cat >> props <<EOF
|
|
output.dir=$out
|
|
context.javaPath=$jre
|
|
EOF
|
|
|
|
ensureDir $out
|
|
$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
|
|
|
|
cat >> $out/bin/aj-runtime-env <<EOF
|
|
#! $SHELL
|
|
|
|
export CLASSPATH=$CLASSPATH:.:$out/lib/aspectjrt.jar
|
|
EOF
|
|
|
|
chmod u+x $out/bin/aj-runtime-env
|