Added the Ant wrapper. The ant script in this wrapper sets the config in environment variables and invokes core-ant.

svn path=/nixpkgs/trunk/; revision=1149
This commit is contained in:
Martin Bravenboer 2004-07-10 16:17:48 +00:00
parent feeff4dfb1
commit e86a4a1112
4 changed files with 38 additions and 2 deletions

View File

@ -0,0 +1,16 @@
. $stdenv/setup || exit 1
mkdir -p $out/bin || exit 1
cat >> $out/bin/ant <<EOF
#! /bin/sh
export JAVA_HOME=$j2sdk
export JAVACMD=$j2sdk/bin/java
export ANT_OPTS=""
export ANT_ARGS=""
$ant/bin/core-ant
EOF
chmod a+x $out/bin/ant || exit 1

View File

@ -1,7 +1,9 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "apache-ant-1.6.1";
name = "core-apache-ant-1.6.1";
realname = "apache-ant-1.6.1";
builder = ./core-builder.sh;
src = fetchurl {
url = http://www.apache.org/dist/ant/binaries/apache-ant-1.6.1-bin.tar.bz2;

View File

@ -0,0 +1,17 @@
{stdenv, fetchurl, j2sdk}:
rec {
body =
stdenv.mkDerivation {
name = ant.realname;
builder = ./builder.sh;
inherit ant j2sdk;
buildInputs = [ant j2sdk];
};
ant =
(import ./core-apache-ant.nix) {
inherit fetchurl stdenv;
};
}

View File

@ -306,8 +306,9 @@ rec {
inherit fetchurl stdenv;
};
apacheant = (import ../development/tools/build-managers/apache-ant/core-apache-ant.nix) {
apacheant = (import ../development/tools/build-managers/apache-ant) {
inherit fetchurl stdenv;
j2sdk = j2sdk15;
};
pcre = (import ../development/libraries/pcre) {