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:
parent
feeff4dfb1
commit
e86a4a1112
16
pkgs/development/tools/build-managers/apache-ant/builder.sh
Normal file
16
pkgs/development/tools/build-managers/apache-ant/builder.sh
Normal 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
|
@ -1,7 +1,9 @@
|
|||||||
{stdenv, fetchurl}:
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
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;
|
builder = ./core-builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.apache.org/dist/ant/binaries/apache-ant-1.6.1-bin.tar.bz2;
|
url = http://www.apache.org/dist/ant/binaries/apache-ant-1.6.1-bin.tar.bz2;
|
||||||
|
17
pkgs/development/tools/build-managers/apache-ant/default.nix
Normal file
17
pkgs/development/tools/build-managers/apache-ant/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -306,8 +306,9 @@ rec {
|
|||||||
inherit fetchurl stdenv;
|
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;
|
inherit fetchurl stdenv;
|
||||||
|
j2sdk = j2sdk15;
|
||||||
};
|
};
|
||||||
|
|
||||||
pcre = (import ../development/libraries/pcre) {
|
pcre = (import ../development/libraries/pcre) {
|
||||||
|
Loading…
Reference in New Issue
Block a user