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 35060] - ant 1.6.4 does not seem to use ~/.ant/lib anymore
Date Fri, 27 May 2005 14:07:04 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=35060>.
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=35060





------- Additional Comments From kajtzu@basen.net  2005-05-27 16:07 -------
(In reply to comment #1)
> can you please give a small self contained example.
> My testing with ant 1.6.4 does no show this problem

After further investigation the problem seems to lie in the fact that I/we use
JPackage rpms for ant and the way the files are laid out there; ant.jar and
ant-launcher.jar are found in /usr/share/java/ while everything else is in
/usr/share/java/ant/. Things work really well if I move/copy ant.jar and
ant-launcher.jar to the /usr/share/java/ant/ subdirectory - this one directory
approach is also the one you guys have in your ant binary distribution.

Playing around with the ant shell script (sh -x ant, really) I noticed that
1.6.2 starts as follows:

/usr/lib/jvm/java/bin/java -classpath
/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/lib/jvm/java/lib/tools.jar
-Dant.home=/usr/share/ant -Dant.library.dir=/usr/share/ant/lib
org.apache.tools.ant.launch.Launcher -cp ''

The above does not seem to work at all with 1.6.4 while the one below works fine:

/usr/lib/jvm/java/bin/java -classpath /usr/share/java/ant-launcher.jar
-Dant.home=/usr/share/ant -Dant.library.dir=/usr/share/ant/lib
org.apache.tools.ant.launch.Launcher -cp
/usr/share/java/ant.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/lib/jvm/java/lib/tools.jar

The jvm version is 1.4.2_08.

My original report of jars in ~/.ant/lib not being used wasn't true, it just
looked that way since ant didn't start up.



-- 
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