<?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>7732</bug_id>
          
          <creation_ts>2002-09-10 03:26 0000</creation_ts>
          <short_desc>ant 1.5.1: start-script broken</short_desc>
          <delta_ts>2003-02-04 19:42:18 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>Development</component>
          <version>1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>stephan@wentz.it</reporter>
          <assigned_to>java@gentoo.org</assigned_to>
          <cc>aalmenar@gmail.com</cc>
    
    <cc>bugzilla@nexia.ca</cc>
    
    <cc>kevin@aptbasilicata.it</cc>
    
    <cc>mkennedy@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>stephan@wentz.it</who>
            <bug_when>2002-09-10 03:26:55 0000</bug_when>
            <thetext>yesterday i emerged ant 1.5 and now my own task-extensions don&apos;t work anymore...
looked into /usr/bin/ant and found this strange code:

[...] it builds the LOCALCLASSPATH out of env.d/20java and other things
if [ -n &quot;$CLASSPATH&quot; ] ; then
  LOCALCLASSPATH=&quot;$CLASSPATH&quot;
fi

# add in the dependency .jar files
LOCALCLASSPATH=`java-config --classpath=ant`
[...]

now shouldn&apos;t the second LOCALCLASSPATH-line look like this?
LOCALCLASSPATH=$LOCALCLASSPATH:`java-config --classpath=ant`

we are overwriting the build LOCALCLASSPATH, and this shouldn&apos;t be, i have no
chance to add other things to the classpath this way. and of course several
lines of code would be superfluous :-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2002-09-11 10:28:27 0000</bug_when>
            <thetext>If you provide me with a proper fix, I&apos;ll apply it, if not, it&apos;ll have to wait
until after the upcoming Gentoo 1.4 release.

We won&apos;t provide ant 1.5 with the 1.4 release.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stephan@wentz.it</who>
            <bug_when>2002-09-13 04:07:54 0000</bug_when>
            <thetext>the fix was in my initial posting ;-) 
it should read 
  LOCALCLASSPATH=$LOCALCLASSPATH:`java-config --classpath=ant 
instead of 
  LOCALCLASSPATH=`java-config --classpath=ant 
 
so that the $LOCALCLASSPATH which has been constructed before this line isn&apos;t 
overwritten... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@nikwest.de</who>
            <bug_when>2002-09-27 05:35:25 0000</bug_when>
            <thetext>I also hat to change /usr/bin/ant from

JAVA_HOME=`grep &quot;^JAVA_HOME&quot; $envfile | sed &quot;s/JAVA_HOME=//&quot;`

to

JAVA_HOME=`java-config --jdk-home`

Don&apos;t know if this is correct, but at least now it seems to work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2002-10-14 13:23:48 0000</bug_when>
            <thetext>Updated this in the current ant-1.5, hopefully it fixes the worst problems.
Reopen the bug if I&apos;m a daft idiot and have overlooked something.

Didn&apos;t bump revision on ant, so you&apos;ll have to remerge dev-java/ant-1.5</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugzilla@nexia.ca</who>
            <bug_when>2002-10-20 12:47:25 0000</bug_when>
            <thetext>Whenever this bug was fixed /usr/bin/ant was changed to:
LOCALCLASSPATH=`${LOCALCLASSPATH}:java-config --classpath=ant`

This causes a file not found error and ant won&apos;t run.

It should be:
LOCALCLASSPATH=&quot;${LOCALCLASSPATH}:&quot;`java-config --classpath=ant`</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2002-10-26 07:57:22 0000</bug_when>
            <thetext>This is fixed in dev-java/ant-1.5.1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aalmenar@gmail.com</who>
            <bug_when>2002-11-18 10:21:29 0000</bug_when>
            <thetext>i downloaded an external package, and build.xml uses taskdef spec. 
CLASSPATH gets override on /usr/bin/ant. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aalmenar@gmail.com</who>
            <bug_when>2002-11-18 12:27:06 0000</bug_when>
            <thetext>Ive checked it, sorry it has already been fixed, confused with bug 10061. </thetext>
          </long_desc>
      
    </bug>

</bugzilla>