Bug 45398 - Some dev-java/* ebuilds call ant but ignoring its exit code
Bug#: 45398 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: java@gentoo.org Reported By: gentoo@frewert.de
Component: Unspecified
URL: 
Summary: Some dev-java/* ebuilds call ant but ignoring its exit code
Keywords:  
Status Whiteboard: 
Opened: 2004-03-22 08:08 0000
Description:   Opened: 2004-03-22 08:08 0000
While hunting another bug, I found that several ebuilds in dev-java call Apache
Ant in src_compile(), but do not respect the exit code of the call.

For example, emerging commons-validator prints

BUILD FAILED
file:/var/tmp/portage/commons-validator-1.0.2-r1/work/commons-validator-1.0.2-src/build.xml:182:
Compile failed; see the compiler error output for details.

but merging happily continues:

>>> dev-java/commons-validator-1.0.2-r1 merged.

Candidates for replacing "ant ${ant_params}" with "ant ${ant_params} || die"
are

commons-digester
commons-fileupload
commons-httpclient
commons-lang
commons-logging
commons-validator
ecs
lucene
servletapi
rhino
fastutil
jade
sablecc
fscript
joscar
violinstrings
commons-daemon
commons-launcher
jmx
poi
commons-el
commons-modeler
joda-time

------- Comment #1 From Chris Aniszczyk (RETIRED) 2004-03-22 19:34:35 0000 -------
Heh, you made me do a lot of commits >:) 

Thanks, these are all fixed in portage now.

I appreciate the report.