<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>64410</bug_id>
          
          <creation_ts>2004-09-17 08:52 0000</creation_ts>
          <short_desc>ant scrip does not use correct java-config query for classpath of ant.</short_desc>
          <delta_ts>2004-09-17 09:02:53 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>c.g.b@carlosbenevides.com</reporter>
          <assigned_to>java@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>c.g.b@carlosbenevides.com</who>
            <bug_when>2004-09-17 08:52:58 0000</bug_when>
            <thetext>After I emerged ant and was emerging portagemaster I got this error &quot;Could not find package ant&quot;. Typing ant would give the same error. After digging around found that the ant script uses java-config to query the class of the package ant and sets it. However, ant is an empty package. It does not have files associated with it. The ant files are actually under the package ant-core. Not sure why this is but. When I changed the java-config query command to look up the classpath of ant-core, it started working. 

#vi `which ant` 
change: 
# add in the dependency .jar files 
LOCALCLASSPATH=&quot;${LOCALCLASSPATH}:`java-config --classpath=ant`&quot; 

to read: 
# add in the dependency .jar files 
LOCALCLASSPATH=&quot;${LOCALCLASSPATH}:`java-config --classpath=ant-core`&quot; 


Reproducible: Always
Steps to Reproduce:
1.Emerge Ant
2.Emerge any other ebuild which uses ant(ie. portagemaster)
3.

Actual Results:  
You get &quot;Could not find package ant&quot; and no package which uses ant will work, 
and give error about not finding Main in the class.

Expected Results:  
It should work?  Ant ebuild should set the correct classpath.

This is a minor bug, as in the bug details I show how I fixed it.  I just 
would like to enter a bug and have it fixed for future ebuilds.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>axxo@gentoo.org</who>
            <bug_when>2004-09-17 09:02:53 0000</bug_when>
            <thetext>thanks

fixed</thetext>
          </long_desc>
      
    </bug>

</bugzilla>