<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/enitsys/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/enitsys/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 16 Apr 2012 18:05:49 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/enitsys/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Option To Prefix Classpath</title><link>https://sourceforge.net/p/enitsys/feature-requests/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JohnnyBoy</dc:creator><pubDate>Mon, 16 Apr 2012 18:05:49 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net1b3223510668fd8dd6b62b37a6da202cc49a91bf</guid></item></channel></rss>