ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Location of ant.jar
Date Thu, 02 Feb 2006 05:21:13 GMT
On Wed, 01 Feb 2006, Ian Pilcher <i.pilcher@comcast.net> wrote:

> I just ran into a problem building EMMA
> (http://emma.sourceforge.net), because the build script expects to
> find ant.jar in the $ANT_HOME/lib directory, and JPackage puts it in
> /usr/share/java.  One symlink and the build works.
> 
> The obvious follow-up question is, whose bug is this?

Not Ant's 8-)

> Is it appropriate to rely on the presence of $ANT_HOME/lib/ant.jar
> (doesn't seem entirely unreasonable to me)?

I wouldn't rely on ANT_HOME being set at all, but if it is, then I
think it's reasonable to assume it points to a directory hierarchy
like the one created by Ant's binary distributions.

> Is it appropriate to ignore the user's CLASSPATH in the process
> (seems less reasonable)?

There are good reasons to do so if you want to ensure you get exactly
the version of a library that you need.  I don't think this is the
case here, though.

> Should the JPackage RPM provide a symlink to conform to the file
> layout expected by Ant "clients"?

Probably, yes.

Stefan

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


Mime
View raw message