Bug#239123: [Build-common-hackers] Bug#239123: cdbs: ant class fails if JAVA_HOME_DIRS points to a empty dir

Stefan Gybas Stefan Gybas <sgybas@debian.org>, 239123@bugs.debian.org
Mon, 22 Mar 2004 12:30:43 +0100

Jan Schulz wrote:

> The ant class fails, if the JAVA_HOME_DIR points to a empty, but existing 
> dir. IMO, the JAVA_HOME test in /usr/share/cdbs/1/class/ant-vars.mk
> should be rewritten to this:

JAVA_HOME_DIRS is more or less a hack to support the changed location of 
java.home in different versions of j2sdk1.3 and j2sdk1.4. You should try 
to avoid it if possible and only use JAVA_HOME and build depend on a 
recent version of j2sdk*.

This is documented behaviour. From /usr/share/cdbs/1/class/ant-vars.mk:

# The home directory of the Java Runtime Environment (JRE) or Java
# Development Kit (JDK). You can either directly set JAVA_HOME in
# debian/rules or set JAVA_HOME_DIRS to multiple possible home
# directories. The first existing directory from this list is used for