Bug#239128: [Build-common-hackers] Bug#239128: cdbs: ant class fails with libant1.6

Stefan Gybas Stefan Gybas <sgybas@debian.org>, 239128@bugs.debian.org
Mon, 22 Mar 2004 12:35:26 +0100

severity 239128 normal
merge 232874 239128

Jan Schulz wrote:

> The ant class fails, when libant1.6 is used. This is probably due 
> to the newly introduced 'ant-launcher.jar', which is need to start ant.

That's true. You currently need to set

DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar

in debian/rules when using libant1.6-java.

> I would suggest to simple workaround the problem in
> /usr/share/cdbs/1/class/ant-vars.mk
> DEB_CLASSPATH = $(ANT_HOME)/lib/ant.jar:$(ANT_HOME)/lib/ant-launcher.jar:$(...)
>                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This will cause a warning when used with libant1.5-java. I'll probably 
only add ant-launcher.jar if it exists and call the new launcher class.