How can I specify the path of a JAR in an ant buildfile?
I am executing lot of scp and sshexec and other remote commands from an ant build script. These commands don't work if jsch.jar isn't in the ant lib directory. To make it work, I copied the JAR into the ant lib directory, but this is not a good solution, as anyone else wanting to run the script would have to do the same thing. To run the ant target from Teamcity, we will have to explicitly set the path of the lib file. Is there a way I can specify the path of the JAR in the ant build XML itself? Thanks all for your answers. I am managed to get it work with classloader task. This is what I did.