I am trying to use some of the optional tasks in ant. In particular the script task. This relies on the bean scripting framework jar. When I emerge ant the ant-bsf.jar that is built in the lib directory is empty. Emerging ant-optional does buils some of the optional jars in /usr/share/ant/lib but not the bsf jar. Reproducible: Always Steps to Reproduce: 1.emerge ant-optional 2. 3. Actual Results: some of the optional jars are built the bsf jar is not built. Expected Results: The bsf..jar should be built. Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r1, 2.6.7-gentoo-r12) ================================================================= System uname: 2.6.7-gentoo-r12 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.5.2 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.is.co.za/linux/distributions/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acl acpi aim alsa apache2 apm arts audiofile avi bcel berkdb bidi bluetooth bonobo bsh calendar cddb cdf cdinstall cdr cdrom chroot clamav cln crypt cups curl db2 dga directfb dnd doc dvd encode esd ethereal evo exif fam fbcon fbdev fdftk flash foomaticdb freetds freetype ftp gb gd gdbm geoip gif gimp gimpprint ginac glade glgd glut gnome gnomedb gnuplot gphoto2 gpm gstreamer gtk gtk2 gtkhtml icq imagemagick imap imlib innodb iodbc irda irmc jabber java javacomm javamail javascript jboss jdepend jikes jmx jpeg jta junit jython lcd lcms ldap libg++ libgda libwww lirc log4j mad mbox mcal mdb memlimit mikmod mmx mono motif mozdomi mozilla mozsvg mpeg mpi msdav msn mssql mysql ncurses nls oci8 odbc offensive oggvorbis opengl oro oscar oss pam pcmcia pcre pdflib perl php plotutils png pnp posix postgres ppds prelude python quicktime quotes readline regexp rhino samba scanner sdl servlet-2.4 slang slp snortsam soap sockets speedo spell spl sse ssl stroke struts svg svga szip tcltk tcpd tidy tiff tokenizer truetype trusted unicode usb vhosts virus-scan wifi wmf wxwin wxwindows x86 xalan xerces xforms xine xinerama xml xml2 xmlrpc xmms xosd xprint xsl xv xvid yahoo zeo zlib"
This can be fixed by adding "bsf-2.3" to the packages="[...]" line of the ebuild.
Once you've patched the ant-optional ebuild, make sure you add bsf-2.3 to the LOCALCLASSPATH line in the /usr/bin/ant script to make it all work.
maybe this one can be closed since the package 'ant-optional' disappeared?
its named ant-tasks, but still has the problem
re-added generation of the bsf.jar in the -r7 version, fixed in cvs. thanks