summary refs log blame commit diff
path: root/pkgs/development/compilers/aspectj/builder.sh
blob: 3b4393720042383bc49d291e2f3ec67398145d5c (plain) (tree)
1
2
3
4
5
6
7
8
9








                     
             









                                   
                                    

         
                                                    

   
                                 
source $stdenv/setup

export JAVA_HOME=$jre

cat >> props <<EOF
output.dir=$out
context.javaPath=$jre
EOF

mkdir -p $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