You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/05/15 12:07:51 UTC

DO NOT REPLY [Bug 45002] New: javac using GCJ compiler ignores classpath

https://issues.apache.org/bugzilla/show_bug.cgi?id=45002

           Summary: javac using GCJ compiler ignores classpath
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: Nathan.Johnson@RheinLand-Versicherungen.de


Using javac element with property build.compiler="gcj"
the classpath value is ignored regardless of whether it is set through the
classpath attribute or classpath element.
The same build script works respecting the classpath with the Sun javac.

Apache Ant version 1.6.5 compiled on June 16 2006

This may be another aspect of the same bug reported as
Bug 34638


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45002] javac using GCJ compiler ignores classpath

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45002


RLVJ <Na...@RheinLand-Versicherungen.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




--- Comment #3 from RLVJ <Na...@RheinLand-Versicherungen.de>  2008-09-09 02:34:09 PST ---
I've run a trivial test, which I'm uploading, code and all.
I tested with Ant 1.6.5 on Linux and 1.7.1 with MinGW.
The bug described did not reproduce.
I only tested (this time) with a classpath element, not attribute.
I speculate that the path I had used when I filed this bug was invalid and
automatically removed from the classpath. Entries inherited remained and it
appeared that the classpath was unaffected by the ant build script.

What seems to be another bug does appear in the attached test.
Inspite of includeAntRuntime & includeJavaRuntime being set to false, the
classpath contains inherited entries.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45002] javac using GCJ compiler ignores classpath

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45002


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #1 from Stefan Bodewig <bo...@apache.org>  2008-08-29 08:08:58 PST ---
could you please show what running ant -verbose lists as command line?  The
code in Gcj.java looks OK on first glance, even in something as old as 1.6.5.

Bug 34638 was about Ant adding stuff to the classpath when it shouldn't rather
than not passing down a classpath at all.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45002] javac using GCJ compiler ignores classpath

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45002


RLVJ <Na...@RheinLand-Versicherungen.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |INVALID




--- Comment #4 from RLVJ <Na...@RheinLand-Versicherungen.de>  2008-09-09 03:09:37 PST ---
I see that the bug I described last (about inherited classpath entries) is 
bug 34638
and that it is fixed later than ant 1.7.1 , which I used to test.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45002] javac using GCJ compiler ignores classpath

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45002





--- Comment #2 from RLVJ <Na...@RheinLand-Versicherungen.de>  2008-09-09 02:33:24 PST ---
Created an attachment (id=22544)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22544)
Trivial Java code and ant build script.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.