diff options
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/aspectj/builder.sh')
-rwxr-xr-x | nixpkgs/pkgs/development/compilers/aspectj/builder.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/aspectj/builder.sh b/nixpkgs/pkgs/development/compilers/aspectj/builder.sh new file mode 100755 index 000000000000..3b4393720042 --- /dev/null +++ b/nixpkgs/pkgs/development/compilers/aspectj/builder.sh @@ -0,0 +1,27 @@ +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 |