[java-sig-commits] [Bug 755325] New: ant cannot find ant-antlr

bugzilla at redhat.com bugzilla at redhat.com
Sun Nov 20 17:44:03 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: ant cannot find ant-antlr

https://bugzilla.redhat.com/show_bug.cgi?id=755325

           Summary: ant cannot find ant-antlr
           Product: Fedora
           Version: 16
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: high
          Priority: unspecified
         Component: ant
        AssignedTo: pcheung at redhat.com
        ReportedBy: loganjerry at gmail.com
         QAContact: extras-qa at fedoraproject.org
                CC: pcheung at redhat.com, akurtako at redhat.com,
                    mmatejov at redhat.com,
                    java-sig-commits at lists.fedoraproject.org
    Classification: Fedora
      Story Points: ---
              Type: ---


Description of problem:
I'm trying to compile a project that uses antlr with ant.  It fails like this:

------------------------------------------------------------------------------
BUILD FAILED
build.xml:337: Problem: failed to create task or type antlr
Cause: the class org.apache.tools.ant.taskdefs.optional.ANTLR was not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/share/ant/lib
        -/home/jamesjer/.ant/lib
        -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem
------------------------------------------------------------------------------

I have the ant-antlr package installed, so ant-antlr.jar *is* in
/usr/share/ant/lib.

Version-Release number of selected component (if applicable):
ant-antlr-1.8.2-6.fc16.noarch

How reproducible:
Always

Steps to Reproduce:
1. Attempt to build an antlr-using project with ant
2.
3.

Actual results:
Ant reports that it cannot find the class in ant-antlr.jar.

Expected results:
Ant is able to find the class.

Additional info:
The problem is that the configuration file is misnamed.  Instead of
/etc/ant.d/antlr, it should be named /etc/ant.d/ant-antlr, and it should
contain this:

ant-antlr ant/ant-antlr

After creating the file with those contents, my project now builds.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the java-sig-commits mailing list