Offline for some days... Maybe,
http://enitsys.sourceforge.net/ant-classloadertask/ will solve your problem. Cheers, Rainer -----Ursprüngliche Nachricht----- Von: Vladimir Egorov [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. September 2007 17:47 An: Ant Users List Betreff: RE: ant-1.6.5; need to add tools.jar to system classpath Jan, Peter, Thank you for your replies. > > Would it make sence to start Ant with a JRE and add the (different) > tools.jar via -lib? The goal is to put tools.jar on _system_ classpath. The -lib puts it on core Ant classpath. > > >Vladimir is trying to use a different tools.jar than the one that > > >is in $JAVA_HOME - as the one in $JAVA_HOME is broken. No the tools.jar is the actual one from the JDK. We need it on system classpath to work around the class-loading bug in javadoc jdk 1.6. http://bugs.sun.com/view_bug.do?bug_id=6176978 Sorry I should have been clearer. > > >ATM I do not see any way other that the one you are using. Thanks - this is good to know. It would be good to make this generic fix in ant-1.6.5, as it makes ant.bat script consistent with ant script (as far as LOCALCLASSPATH goes). > > >> - If JAVA_HOME points to a JDK it should be on Ants > > >classpath already. Yes, JAVA_HOME points to a JDK, but tools.jar is not on system classpath, even if we add it to CLASSPATH. > > >> - <javadoc> supports nested sourcepath, classpath and bootclasspath The actual task that got broken is <jwsc> http://e-docs.bea.com/wls/docs90/webserv/anttasks.html#1039892 It has dependency on javadoc. Our goal is to work around the bug in Ant environment, rather than telling customers to edit their Ant files, or editing our internal test files. Thanks again, --Vladimir Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]