ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38500] New: - Ant launcher fails when tools.jar is in 'JRE'
Date Sat, 04 Feb 2006 00:49:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38500>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38500

           Summary: Ant launcher fails when tools.jar is in 'JRE'
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: ndjc@ncrossley.com


The Ant launcher (Locator.java) looks to see if the Sun compiler tools are in 
the existing class path, and if not, it tries to find them by looking in 
<java.home>/lib.  However, if java.home ends with "/jre", then the Ant 
launcher does not look there, but in the parent directory <java.home>/../lib, 
hoping that will be the JDK.

Recent changes to JRE redistribution licenses allows vendors to redistribute 
tools.jar with JREs.  This is useful, allowing compilation of JSPs and other 
forms of dynamic code generation in deployed applications.

The existing Ant launcher will fail to find tools.jar in this scenario, 
because it does not look in <java.home>/lib first before trying the parent.

I have a patch for this, so that the launcher will look first in java.home 
itself, regardless of its name, and then look in the parent directory only if 
tools.jar was not found in java.home and that path ends with "/jre".

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message