Bug#238674: ant: Patch for this bug

Janne Blomqvist Janne Blomqvist <jblomqvi@cc.hut.fi>, 238674@bugs.debian.org
Tue Mar 23 21:33:01 2004


Package: ant
Version: 1.6.1-1
Severity: normal
Followup-For: Bug #238674

As you said, the problem is that ant doesn't add the jars in
/usr/share/ant/lib to the classpath. The following patch to
/usr/share/ant/bin/ant fixes it:

160a161,172
> # Add all jars in $ANT_LIB (default on debian /usr/share/ant/lib)
> # to $LOCALCLASSPATH
> for jar in $ANT_LIB/*.jar; do
>     if [ -f $jar ]; then
>         if [ "$LOCALCLASSPATH" ] ; then
>             LOCALCLASSPATH="$LOCALCLASSPATH:$jar"
>         else
>             LOCALCLASSPATH="$jar"
>         fi
>     fi
> done
> 


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (700, 'testing'), (510, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-grsec
Locale: LANG=sv_FI@euro, LC_CTYPE=sv_FI@euro

Versions of packages ant depends on:
ii  gij-3.3 [java-virtual-machine 1:3.3.3-1  The GNU Java bytecode interpreter
ii  j2sdk1.4-bd [java-virtual-mac 1.4.2-0.13 Java (TM) 2 SDK 1.4 (Blackdown)
ii  java-virtual-machine-dummy [j 0.3        Dummy Java virtual machine
ii  kaffe [java-virtual-machine]  2:1.1.4-2  A JVM to run Java bytecode
ii  libant1.6-java                1.6.1-1    Java based build tool like make
ii  libxerces2-java               2.6.1-1    Validating XML parser for Java wit

-- no debconf information