<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/enitsys/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/enitsys/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/enitsys/feature-requests/</id><updated>2012-04-16T18:05:49Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Option To Prefix Classpath</title><link href="https://sourceforge.net/p/enitsys/feature-requests/1/" rel="alternate"/><published>2012-04-16T18:05:49Z</published><updated>2012-04-16T18:05:49Z</updated><author><name>JohnnyBoy</name><uri>https://sourceforge.net/u/opticyclic/</uri></author><id>https://sourceforge.net1b3223510668fd8dd6b62b37a6da202cc49a91bf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It took me quite a while to work out how to fix an issue where I had ant-contrib-1.0b2.jar in the project and other people had ant-contrib-1.0b3.jar in the ant lib.&lt;br /&gt;
FYI ant-contrib-1.0b2.jar is required because antfetch doesn't work in ant-contrib-1.0b3.jar.&lt;/p&gt;
&lt;p&gt;I couldn't work out how to prefix ant-contrib-1.0b2.jar to the system classpath to get around this so I had to create a new classloader.&lt;br /&gt;
All the info about how to do this is on the doc page (http://enitsys.sourceforge.net/ant-classloadertask/), however, it is spread out in different places and more examples (such as below) would have made this easier.&lt;/p&gt;
&lt;p&gt;Can you add a prefix to classpath option and/or update the documentation with an example like this please.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;lt;!--Append the dependent jars to the classpath so we don't have to install them in the ant directory--&amp;gt;&lt;br /&gt;
&amp;lt;taskdef resource="net/jtools/classloadertask/antlib.xml"&lt;br /&gt;
classpath="${deploy.dir}/ftpant/ant-classloadertask.jar"/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;classloader loader="ant.contrib.loader" parentloader="project"&amp;gt;&lt;br /&gt;
&amp;lt;classpath&amp;gt;&lt;br /&gt;
&amp;lt;pathelement location="${deploy.dir}/ftpant/ant-contrib-1.0b2.jar"/&amp;gt;&lt;br /&gt;
&amp;lt;pathelement location="${deploy.dir}/ftpant/jsch-0.1.42.jar"/&amp;gt;&lt;br /&gt;
&amp;lt;pathelement location="${deploy.dir}/ant-classloadertask.jar"/&amp;gt;&lt;br /&gt;
&amp;lt;/classpath&amp;gt;&lt;br /&gt;
&amp;lt;antparameters parentfirst="false"/&amp;gt;&lt;br /&gt;
&amp;lt;handler loader="org.apache.tools.ant.AntClassLoader" adapter="org.apache.tools.ant.taskdefs.classloader.adapter.AntClassLoaderAdapter"/&amp;gt;&lt;br /&gt;
&amp;lt;/classloader&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;taskdef resource="net/sf/antcontrib/antcontrib.properties"&lt;br /&gt;
classpath="${deploy.dir}/ftpant/ant-contrib-1.0b2.jar"&lt;br /&gt;
loaderref="ant.contrib.loader"/&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>