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 12522] - taskdef ignores CLASSPATH
Date Wed, 11 Sep 2002 13:25:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12522>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12522

taskdef ignores CLASSPATH





------- Additional Comments From conor@cortexebusiness.com.au  2002-09-11 13:25 -------
Firstly let me say, do NOT place ant.jar in $JAVA_HOME/lib/ext. Only JDK
extensions should be placed into this area. Classes in this area are considered
to be trusted and may not dynamically load classes outside the bootclasspath
(they won't be able tosee them). 

So, applications like Ant (and JUnit) which load user classes dynamically will
not work if they live there. 

The best place to put jars for Ant is in $ANT_HOME/lib. If all the classes are
in there you will not need a classpath on your taskdef (you don't say whether
you have that). If you do have a classpath on the <taskdef> You may be running
into problems due to delegation between the taskdef's loader and the system loader.

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


Mime
View raw message