Bug#436680: ant: rmic task with kaffe rmic fails

Jan-Pascal van Best janpascal at vanbest.org
Wed Aug 8 13:40:47 UTC 2007


Package: ant
Version: 1.7.0-2
Severity: normal
Tags: patch

Hi all,

When building Lucene using gcj I came across the following problem. 

The ant rmic task calls rmic as an external process. When constructing the
command line, the "-verbose" options is added AFTER the classes to handle. The
rmic documentation however states that all options must come BEFORE the list of
classes. It seems Sun's rmic doesn't care, but the gcj/kaffe rmic does.

The issue is in the execute() method of the 
org.apache.tools.ant.taskdefs.rmic.KaffeRmic class. 

Patch attached.

Cheers,

Jan-Pascal


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (900, 'stable'), (300, 'testing'), (100, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages ant depends on:
ii  gij [java-virtual-machine]    4:4.1.1-15 The GNU Java bytecode interpreter
ii  gij-4.1 [java1-runtime]       4.1.1-20   The GNU Java bytecode interpreter
ii  java-gcj-compat               1.0.65-10  Java runtime environment using GIJ
ii  java-gcj-compat-dev           1.0.65-10  Java runtime environment with GCJ
ii  kaffe-pthreads [java1-runtime 2:1.1.7-4  A POSIX threads enabled version of
ii  libxerces2-java               2.8.1-1    Validating XML parser for Java wit
ii  sun-java5-jre [java1-runtime] 1.5.0-10-3 Sun Java(TM) Runtime Environment (

Versions of packages ant recommends:
pn  ant-gcj                       <none>     (no description available)
ii  ant-optional                  1.7.0-2    Java based build tool like make - 

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kaffermic.patch
Type: text/x-c++
Size: 1315 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20070808/0c1c8ad4/attachment.bin 


More information about the pkg-java-maintainers mailing list