Bug#251527: marked as done (antlr task broken when using Debian-dist'd /usr/share/ant/lib/ant-launcher.jar)

Debian Bug Tracking System owner@bugs.debian.org
Sun Jun 6 11:57:01 2004


Your message dated Sun, 06 Jun 2004 13:32:04 -0400
with message-id <E1BX1V6-0006rn-00@newraff.debian.org>
and subject line Bug#251527: fixed in ant 1.6.1-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 May 2004 22:20:11 +0000
>From fleming@cs.washington.edu Fri May 28 15:20:11 2004
Return-path: <fleming@cs.washington.edu>
Received: from mx1.yipes.com [209.213.199.100] (root)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BTphz-0007Om-00; Fri, 28 May 2004 15:20:11 -0700
Received: from herc.ssd.loral.com ([158.184.3.110] verified)
  by mx1.yipes.com (CommuniGate Pro SMTP 3.5.1)
  with ESMTP id 21206668 for submit@bugs.debian.org; Fri, 28 May 2004 15:20:10 -0700
Received: from achernar.ssd.loral.com ([158.184.164.39]) by
          herc.ssd.loral.com (Netscape Messaging Server 4.15) with ESMTP
          id HYG3DM00.TM1; Fri, 28 May 2004 15:20:10 -0700 
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Robert Fleming <fleming@cs.washington.edu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: antlr task broken when using Debian-dist'd
 /usr/share/ant/lib/ant-launcher.jar
Bcc: Robert Fleming <fleming@cs.washington.edu>
X-Mailer: reportbug 2.60
Date: Fri, 28 May 2004 15:20:10 -0700
Message-ID: <HYG3DM00.TM1@herc.ssd.loral.com>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,DATING,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: ant
Version: 1.6.1-1
Severity: normal

This build.xml:

-----cut-----
<project default="test">
  <target name="test">
    <antlr target="Test.g"/>
  </target>
</project>
-----cut-----

causes Ant to output this message:

-----cut-----
BUILD FAILED
..../build.xml:3: Could not create task or type of type: antlr.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual 
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file: 
 - You have misspelt 'antlr'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
   and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and optional.jar is absent
   Fix: look for optional.jar in ANT_HOME/lib, download if needed
 - The task was not built into optional.jar as dependent
   libraries were not found at build time.
   Fix: look in the JAR to verify, then rebuild with the needed
   libraries, or download a release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task 
   and needs to be declared using <taskdef>.

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

Total time: 0 seconds
-----cut-----

I found that replacing the /usr/share/ant/lib/ant-launcher.jar (which is
a symlink to ../../ant1.6/lib/ant-launcher.jar) with ant-launcher.jar
from the apache-ant-1.6.1-bin.tar.bz2 distributed by Apache fixes the
problem.

Here's a recursive diff of the two (extracted) jar files:

-----cut-----
diff -r apache/META-INF/MANIFEST.MF debian/META-INF/MANIFEST.MF
3c3
< Created-By: 1.4.1_02-b06 (Sun Microsystems Inc.)
---
> Created-By: 1.1.3 (Kaffe.org project)
Binary files apache/org/apache/tools/ant/launch/AntMain.class and debian/org/apache/tools/ant/launch/AntMain.class differ
Binary files apache/org/apache/tools/ant/launch/Launcher.class and debian/org/apache/tools/ant/launch/Launcher.class differ
Binary files apache/org/apache/tools/ant/launch/LaunchException.class and debian/org/apache/tools/ant/launch/LaunchException.class differ
Binary files apache/org/apache/tools/ant/launch/Locator$1.class and debian/org/apache/tools/ant/launch/Locator$1.class differ
Binary files apache/org/apache/tools/ant/launch/Locator.class and debian/org/apache/tools/ant/launch/Locator.class differ
-----cut-----

But I did not dig to see if the difference was only the compiler, or
whether different source revisions went into the class files.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.5-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

Versions of packages ant depends on:
ii  gij-3.3 [java-virtual-mac 1:3.3.3-9      The GNU Java bytecode interpreter
ii  j2re1.4 [java-virtual-mac 1.4.0.99beta-1 Blackdown Java(TM) 2 Runtime Envir
ii  libant1.6-java            1.6.1-1        Java based build tool like make
ii  libxerces2-java           2.6.1-1        Validating XML parser for Java wit

-- no debconf information

---------------------------------------
Received: (at 251527-close) by bugs.debian.org; 6 Jun 2004 17:38:20 +0000
>From katie@ftp-master.debian.org Sun Jun 06 10:38:20 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BX1b9-0001xX-00; Sun, 06 Jun 2004 10:38:20 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BX1V6-0006rn-00; Sun, 06 Jun 2004 13:32:04 -0400
From: Stefan Gybas <sgybas@debian.org>
To: 251527-close@bugs.debian.org
X-Katie: $Revision: 1.49 $
Subject: Bug#251527: fixed in ant 1.6.1-2
Message-Id: <E1BX1V6-0006rn-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sun, 06 Jun 2004 13:32:04 -0400
Delivered-To: 251527-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 7

Source: ant
Source-Version: 1.6.1-2

We believe that the bug you reported is fixed in the latest version of
ant, which is due to be installed in the Debian FTP archive:

ant-doc_1.6.1-2_all.deb
  to pool/contrib/a/ant/ant-doc_1.6.1-2_all.deb
ant_1.6.1-2.diff.gz
  to pool/contrib/a/ant/ant_1.6.1-2.diff.gz
ant_1.6.1-2.dsc
  to pool/contrib/a/ant/ant_1.6.1-2.dsc
ant_1.6.1-2_all.deb
  to pool/contrib/a/ant/ant_1.6.1-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 251527@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefan Gybas <sgybas@debian.org> (supplier of updated ant package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun,  6 Jun 2004 18:55:09 +0200
Source: ant
Binary: ant-doc ant
Architecture: source all
Version: 1.6.1-2
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Stefan Gybas <sgybas@debian.org>
Description: 
 ant        - Java based build tool like make
 ant-doc    - Java based build tool like make - API documentation
Closes: 238187 238674 239797 240245 245042 249136 251527
Changes: 
 ant (1.6.1-2) unstable; urgency=low
 .
   * Add the Xerces2 XML parser to the local classpath
     (closes: #240245, #249136)
   * Don't make /usr/share/ant/lib/ant-launcher.jar a symlink since Ant's
     startup code would follow it and wrongly add JARs from
     /usr/share/ant1.6/lib instead of /usr/share/ant/lib to the classpath
     (closes: #238674, #239797, #251527, #238187, #245042)
   * Correctly set ANT_HOME in /usr/bin/ant
Files: 
 8c280b5df0f793e069613c9a90ba0b4b 1001 contrib/devel optional ant_1.6.1-2.dsc
 e56022bc8f20506b09aa86d9cd0edb96 12752 contrib/devel optional ant_1.6.1-2.diff.gz
 ddc0ec2831781a048ee515d74a7f80f4 4755262 contrib/devel optional ant_1.6.1-2_all.deb
 f949291acb17b9e730243e6c8796faaa 1757180 contrib/devel optional ant-doc_1.6.1-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAw1DyCdoSgNrrJGsRAuxYAKC1W6Jh2jmf09dc+2f1L7GM2U4JJwCfY+PW
Ll/xxzJH59EGzSe2qrfdP4c=
=II7T
-----END PGP SIGNATURE-----