title: Is there a way to specify the location of a local jsch.jar from within build.xml?
body: <p>build.xml contains <code>&lt;scp&gt;</code> and <code>&lt;sshexec&gt;</code> tasks, so I provide jsch.jar and 
  other libraries in the same directory together with build.xml. </p>
  
  <p>The following taskdef:</p>
  
  <pre><code>&lt;taskdef name="scp"
      classname="org.apache.tools.ant.taskdefs.optional.ssh.Scp"
      classpath="WebContent/WEB-INF/lib/jsch-0.1.43.jar" /&gt;
  </code></pre>
  
  <p>throws an error</p>
  
  <pre><code>A class needed by class org.apache.tools.ant.taskdefs.optional.ssh.Scp
  cannot be found: com/jcraft/jsch/UserInfo
  </code></pre>
  
  <p>I cannot modify the standard Ant installation (e.g. put jsch.jar in ant lib 
  directory, or remove ant-jsch.jar), or add command-line flags, or modify 
  system environment variables, etc.: the script has to run with default Ant 
  on different systems.</p>
  
  <p>I'm actually reposting the question originally asked here:
  <a href="http://ant.1045680.n5.nabble.com/specifying-location-of-an-external-library-within-build-xml-td1344969.html" rel="nofollow noreferrer">http://ant.1045680.n5.nabble.com/specifying-location-of-an-external-library-within-build-xml-td1344969.html</a></p>
  
  <p>but could not get the answer about classloader to work.</p>