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] Commented: (IVYDE-271) Eclipse-IvyDE should not add ivy jar to ant class path when Ant is run as an external tool
Date Mon, 17 Jan 2011 12:37:43 GMT

    [ https://issues.apache.org/jira/browse/IVYDE-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982618#action_12982618
] 

Martin Weber commented on IVYDE-271:
------------------------------------

Definitely not.
Thank you!

> 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
>            Assignee: Nicolas Lalevée
>
> 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