You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Erik Price <ep...@ptc.com> on 2003/01/06 18:09:09 UTC

library dependencies question

I am following some instructions for using ant to build and install a 
J2EE webapp, and have been referred to use certain Ant tasks that do not 
ship with Ant by default.  To use these tasks, the instructions say to 
put "catalina-ant.jar" in the "lib" directory of my ant distribution.

I do not wish to bother my system administrator with this task, and 
while searching the ant documentation for a user-level alternative, I 
found this tidbit:

"The following libraries are needed in your CLASSPATH or in the install 
directory's lib directory if you are using the indicated feature."

This seems very similar to the instructions for using the custom Ant 
tasks mentioned above.  Does this mean that instead of having to put 
"catalina-ant.jar" in the ant distribution's "lib" directory, I can 
simply make put this JAR file in my $CLASSPATH?

Thank you in advance for your help.



Erik


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: library dependencies question

Posted by Erik Price <ep...@ptc.com>.

Stefan Bodewig wrote:
> On Mon, 06 Jan 2003, Erik Price <ep...@ptc.com> wrote:
> 
> 
>>Does this mean that instead of having to put "catalina-ant.jar" in
>>the ant distribution's "lib" directory, I can simply make put this
>>JAR file in my $CLASSPATH?
> 
> 
> Yes.
> 
> The wrapper script that runs Ant will put everything that is in
> ANT_HOME/lib into CLASSPATH - so adding the jar file there directly is
> completely equivalent.


Thanks for clearing that up for me Stefan!  I didn't know ant was a 
wrapper, but now that I look at /usr/bin/ant it is indeed a shell script 
after all.


Erik


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: library dependencies question

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 06 Jan 2003, Erik Price <ep...@ptc.com> wrote:

> Does this mean that instead of having to put "catalina-ant.jar" in
> the ant distribution's "lib" directory, I can simply make put this
> JAR file in my $CLASSPATH?

Yes.

The wrapper script that runs Ant will put everything that is in
ANT_HOME/lib into CLASSPATH - so adding the jar file there directly is
completely equivalent.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>