ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Weber (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVYDE-271) Eclipse-IvyDE should not add ivy jar to ant class path when Ant is run as an external tool
Date Fri, 10 Dec 2010 16:31:05 GMT
Eclipse-IvyDE should not add ivy jar to ant class path when Ant is run as an external tool
------------------------------------------------------------------------------------------

                 Key: IVYDE-271
                 URL: https://issues.apache.org/jira/browse/IVYDE-271
             Project: IvyDE
          Issue Type: Bug
    Affects Versions: 2.1.0
            Reporter: Martin Weber


The external Ant will abort with a ClassNotFoundException in the first <ivy:resolve>
task if Ivy is configured to use classes from other jars (e.g. jars with custom version matcher
classes, parser classes, sftp resolver in this case).
Example: 
- ivysettings defines an sftp resolver (which requires jsch.jar to work)
- in build.xml, Ivy tasks are define with <taskdef>
<classpath >
  <fileset dir="${generic.buildsys.dir}/lib-ivy">
        <include name="jsch*.jar" />               <----- needed for sftp resolver
        <include name="ivy*.jar" />                  <----- Ivy and Ivy tasks
    </fileset>
</classpath> 

If ivy.jar is added as an antlib at the time Ant is invoked, the <classpath> of the
above <taskdef> seems to be ignored and the jsch.jar is not searched for classes. (See
Ant FAQ: <http://ant.apache.org/faq.html#delegating-classloader>)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message