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 10:54:44 GMT

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

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

I found out that the bundle described as 'Ivy bundle' was adding Ivy as an antlib to the ant
that is installed with Eclipse.
Splitting of the antlib feature will help, but please change the feature description to something
more informative like
'Apache Ivy is a popular dependency manager. This feature adds Ivy as an antlib to the ant
that is installed with Eclipse.'

Otherwise people (like me) will always install the feature.


> 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